0
Why does my program work in Eclipse but not on the Code playground?
My program "Quadratic Equation Solution Finder" works not on the playground where it says "Compiler error" after the first input. I checked the same code with Eclipse and it worked. Could somebody explain to me why it doesnt work on the playground? Thank you!
4 Answers
+ 3
I'm so sorry to say this, but...
import java.util.Scanner; - does not work.
The playground on Sololearn cannot import modules. This is one of my many issues to get my coding projects to work.
Feel free to go to my profile to see what I mean. 80% of all my codes doesn't work in here but 100% goes flawless anywhere else.
You have my condolences for your loss. :/
Dr.
+ 3
@uran Are you saying that importing modules actually work in here and that I can adjust the classes and perhaps some key syntaxes to get it to run properly??
+ 2
change the class name to Program
remove the indentation that the eclipse has added, and then add indentation using tab.
+ 2
@Dr. his code works here, i tried that but unfortunately i forgot to save it.
I just had to change the Class name to Program, and remove the characters that Eclipse added when he made indentation.
And to input multiple lines, you just have to separate them by hitting enter.
P.S. I did save it
https://code.sololearn.com/cFsXfqSya9lQ/#java