Posts by cambine • 59 points
5 posts
-
0
votes1
answer165
viewsQ: How to resolve error: illegal Static declaration
I have 2 classes that work well independently of each other. I joined the 2 in one and got 3 build errors, the error message says: ilegal static declaration. how to solve error on lines 42, 58 6 69.…
-
-1
votes1
answer225
viewsQ: Save user input to a loop
I want to get the variable list numeros, generated by the following loop: Scanner kb = new Scanner (System.in); double [] numeros= new double[10]; for (int i = 0; i < numeros.length; i++) {…
-
4
votes1
answer57
viewsQ: "illegal start of Expression" when compiling on CMD
I have the mini program, which I will show you next. When compiling at the command prompt, I got an error on line 47 which says: illegal start of Expression I have in the program a list of entries…
-
0
votes3
answers301
viewsQ: How to make the if-Else instruction work for reading integers
My program compiled in cmd, but running does not execute the instruction if, showing only the last String and closes. I want the user to have the option to register another message. What possible…
-
0
votes2
answers61
viewsQ: Error "required int" when executing code
I made this small program, where I want you to loop, while the user chooses to register more messages. The error, after compiling the code, says: required:int found: no Arguments Reason: actual and…