Posts by MrPNG • 261 points
8 posts
-
1
votes1
answer295
viewsA: Probability in data launches
Actually, number 6 was not drawn 833116 sometimes, it’s just an error in accounting information: note that the elserefers only to the conditional if (num == 5), that is, if num be it 1, 2, 3, 4 or…
-
0
votes1
answer56
viewsA: Exception Jtattoo main
In fact, the file .jar is opened and the program starts, but, as the exception shows, there is no class called com.jtattoo.plaf.fast.FastLookAndFeel in that file, and how it’s probably being used in…
-
1
votes1
answer930
viewsA: How to resolve "Type Mismatch: cannot Convert from element type Object to Message"?
The problem in this case is that you do not specify what type of object exists in the LinkedList in private final List messages = Collections.synchronizedList(new LinkedList()); then the JVM has no…
-
2
votes1
answer276
viewsA: Problem printing the contents of a vector
EDIT: Tanto char[] x = new char[n], how much char x[] = new char[n] are compiled normally, as @Diego Felipe said. However, it is preferable that the second form be avoided, according to official…
-
0
votes1
answer108
viewsA: Select Hibernate + ifrebird
Probably the problem is on the line Query q = em.createQuery ("from Cadgru where codgru ='" + gr + "'"); for the error is a SQLGrammarException (incorrect grammar of statement). I imagine you want…
-
1
votes1
answer346
viewsA: Error : Class org.firebirdsql.jdbc.Fbdriver has Unsupported major or minor version Numbers
Just like @Darkhyudra said, you are using a version of Firebird JDBC Driver compiled with Java 8, but your project uses Java 7. In this case, you only need to replace the library file with a version…
-
0
votes1
answer31
viewsA: Error when compiling LWJGL
Please give more details about the program you are using to run your java application or if you are starting directly from cmd. Maybe there is some problem with the way your application was exported…
-
5
votes2
answers9108
viewsA: How to insert multiple values into an array?
You can use this method, which adds the course names to the vector cursos, replacing the previous values, if there were any: public void setCursos(String ... novosCursos){ int i = 0; for(String…