Posts by Scarabelo • 331 points
14 posts
- 
		1 votes1 answer2326 viewsA: Simple Java application error: Picked up _JAVA_OPTIONS: -Xmx4096mYou probably have an environment variable configured with this name "_JAVA_OPTIONS" and its content is "-Xmx4069m", by default java recognizing that the OS has an environment variable with that name… 
- 
		1 votes1 answer123 viewsA: Implementation of the Java Mysql MVC modelIf your project is small I would move on to a structure similar to this: /src/main/java/myName/appName/controller /src/main/java/myName/appName/model /src/main/java/myName/appName/model/request… 
- 
		0 votes2 answers151 viewsA: How does Stdaudio work in java?Fussando a little in the Internets (I found interesting your question related to FFT) I found an algorithm that runs FFT and discriminates the content of each variable, maybe help you: Source of the… 
- 
		1 votes2 answers186 viewsA: How does Java sync work?I do not understand how duplicated because the question is more specific than "what is thread", well the answer is relatively simple, this situation you presented the biggest reason is that "if you… 
- 
		0 votes1 answer62 viewsA: I have an error in Netbeans I can’t make lambda expressionYour netbeans is set with jdk 1.6 you have to change in netbeans conf: Find the Folder where netbeans is installed C: Program Files Netbeans X.x etc netbeans.conf Change the variable below by… 
- 
		0 votes1 answer60 viewsA: Configure JPA to recognize uppercase Postgresql entities and tablesMaybe it is because you are using MYSQL5DIALECT, has a specific dialect for postgree, which ends up improving the naming Strategy.… 
- 
		0 votes1 answer104 viewsA: getClass(). getResource() returns nullUse getResource for the class URL resource = Subclass.class.getClassLoader().getResource("css.css"); 
- 
		-1 votes2 answers1070 viewsA: Regular expression for alphanumeric characters, hyphen, space or single quotesRegex below accepts only characters, numbers and special characters "'" and "-" [a-zA-Z0-9 '-] 
- 
		2 votes2 answers250 viewsA: How to validate elements produced during a Java Stream before Collect?A relatively elegant solution would be to use anymatch to check if there is any scenario where you should launch Exception and in a second moment, if there was no Exception, you would follow with… 
- 
		7 votes2 answers4293 viewsA: Break and Continue on foreach Java 8There is no break and continue stream, as your primary goal is to run iterations in parallel, so giving a "break" or a "continue" would be extremely inefficient and would most likely result in wrong… 
- 
		1 votes2 answers74 viewsA: Java running 2 programs in parallelFace the problem ta in your code, the while of line 22 ta in infinite loop the value of "mes" is never changed so will not leave this loop ever 
- 
		0 votes1 answer71 viewsA: Move Files after FTP UploadThe question got a little confusing, but if the problem is moving folder files try using apache Camel, it is simple and works well. 
- 
		0 votes3 answers227 viewsA: What is the pattern represented by this class called?So if the goal is to group several information from different tables one can use the concept of DTO since it is a set of data that will be transferred in an object and that do not represent a single… 
- 
		0 votes1 answer81 viewsA: Java Help: Save a Key-Value Arraylist in a BDThe easiest way would be to implement this information in the Entity model and save using Hibernate, it’s really simple. Since your list would be an entity list and to save just one . save() in the…