Home > Back-end >  Can't solve the exception in the thread "is the main" Java. Lang
Can't solve the exception in the thread "is the main" Java. Lang

Time:10-06

Beginners Java, (using the eclipse), as shown in figure on the Internet to see that the JDK and the JVM version, open the properties found is 1.8, the code is no problem, the teacher in class on the topic and the Java core technology, has not been solved, the teacher say is an array, but I know that should not, because the first chapter of the code to run two days ago, very urgent, small white help bosses!

CodePudding user response:

The teacher said is right, ha ha, you of your code is a problem, the first is the array subscript crossing the line, the console log already wrote have been very clear; The second is the type matching problem; Do you think is wrong, or should believe that the teacher, ask the teacher how to solve, or to stick all the code, easy to solve,
Error depends on a log print error, average error, the log will be a clear hint, then you can check it to the relevant position, also can click on the console line has to buy, can be directly positioning to the point of error

CodePudding user response:

1/f, reference source is a ghost reply:
ha ha, you are the teacher said is right, your code is a problem, the first is the array subscript crossing the line, the console log already wrote have been very clear; The second is the type matching problem; Do you think is wrong, or should believe that the teacher, ask the teacher how to solve, or to stick all the code, easy to solve,
Error depends on a log print error, average error, the log will be a clear hint, then you can check it to the relevant position, also can click on the console line has to buy, can be directly positioning to the wrong point
thank you! Really is my problem, thank you, I'll be careful in the future
  • Related