0

Can't understand this error in Java.

I'm just beginner in Java and I've created this code but it's generating an error which I can't understand. Any help would be appreciated! 🙏 https://code.sololearn.com/cwLw7xiBSD9K/?ref=app

11th Jan 2019, 11:18 AM
Шащи Ранжан
Шащи Ранжан - avatar
6 odpowiedzi
+ 1
Bill != bill Java is case sensitive but i think it's not a good practise to use the same name for two classes. update: renaming the class bill to Test works fine.
11th Jan 2019, 11:27 AM
Tom Dooley
Tom Dooley - avatar
+ 1
Shashi Ranjan Maybe it matters only here in Solo Learn cause i don't know how class files will saved here. Later on i give it a try on my machine.
11th Jan 2019, 11:57 AM
Tom Dooley
Tom Dooley - avatar
+ 1
Yes it worked fine on Linux but not here. Tom Dooley anyway thanks for the input
11th Jan 2019, 12:02 PM
Шащи Ранжан
Шащи Ранжан - avatar
+ 1
Thanks for your feedback 👌🙂
11th Jan 2019, 12:03 PM
Tom Dooley
Tom Dooley - avatar
0
Tom Dooley I don't understand why should that matter 'cause the two are two different classes and so I don't want Bill = bill. Moreover it worked when I changed class bill to class MyClass?
11th Jan 2019, 11:50 AM
Шащи Ранжан
Шащи Ранжан - avatar
0
Bennett Post seems correct! But I don't understand why is it like that in windows? Linux seems to be more accurate then. And I restored the code so that error can be reproduced.
11th Jan 2019, 12:24 PM
Шащи Ранжан
Шащи Ранжан - avatar