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
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.
+ 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.
+ 1
Yes it worked fine on Linux but not here.
Tom Dooley anyway thanks for the input
+ 1
Thanks for your feedback 👌🙂
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?
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.