What is the problem? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
7th Apr 2019, 9:19 PM
Fatemeh Rahimzadeh
Fatemeh Rahimzadeh - avatar
13 Answers
0
There
8th Apr 2019, 7:34 AM
Saly Slays
+ 3
You did not write the code in the code playground, right? So I think this is your problem: https://www.sololearn.com/discuss/1746315/?ref=app
7th Apr 2019, 10:36 PM
Denise Roßberg
Denise Roßberg - avatar
+ 3
* // TODO Auto-generated method stub This line comes from an IDE (eclipse?). * You have a lot of white spaces inside your code. * only compilation error Maybe you used both? IDE and playground?
7th Apr 2019, 10:54 PM
Denise Roßberg
Denise Roßberg - avatar
+ 3
Here is a version of your code without invisible characters: https://code.sololearn.com/cc5a3BcEF0rw/?ref=app Now you get detailed error messages and can debug your code. I don't know what you want to do with your code so I can't help you :/ Maybe you can give me an example of an input and an expected output.
7th Apr 2019, 11:06 PM
Denise Roßberg
Denise Roßberg - avatar
+ 3
Have look in the code: Item is a problem. What is Item? https://code.sololearn.com/cc5a3BcEF0rw/?ref=app You used netbeans? I know that some users have troubles with netbeans and invisible characters
7th Apr 2019, 11:53 PM
Denise Roßberg
Denise Roßberg - avatar
8th Apr 2019, 11:30 AM
Denise Roßberg
Denise Roßberg - avatar
+ 2
Line 22: You must return a value Line 33: typo --> System
7th Apr 2019, 10:16 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
That's right, but it's not going to run again
7th Apr 2019, 10:30 PM
Fatemeh Rahimzadeh
Fatemeh Rahimzadeh - avatar
+ 1
R u sure ? Because I did it and it did not work again
7th Apr 2019, 10:43 PM
Fatemeh Rahimzadeh
Fatemeh Rahimzadeh - avatar
+ 1
I do not use eclipse. NetBeans does not hesitate, but it does not compile the program properly. .
7th Apr 2019, 11:09 PM
Fatemeh Rahimzadeh
Fatemeh Rahimzadeh - avatar
+ 1
What?
8th Apr 2019, 7:53 AM
Fatemeh Rahimzadeh
Fatemeh Rahimzadeh - avatar
+ 1
No.see you
8th Apr 2019, 10:42 AM
Saly Slays
0
7@1
8th Apr 2019, 10:43 AM
Saly Slays