+ 1

Code (Java) works in Eclipse but not on SoloLearn - Is there anything I need to consider when copy and pasting code?

I coded a program which is capable of converting metric lenght units into each other in the "Eclipse"-environment. Now I would like to share this code with you on SoloLearn but the copied and pasted code doesen't work here and I can't figure out why. Is there anything I need to consider when importing code to this plattform? Thanks for your Help! You can find the code here: https://code.sololearn.com/cMIQ63S0KRZS/#java

14th Jun 2017, 3:37 PM
Sogamotu
Sogamotu - avatar
2 ответов
+ 3
sololearn has limited input. all input needs to be entered when the program starts 5 4 5 3 like that and when you loop and recall input, it errors out
14th Jun 2017, 3:44 PM
LordHill
LordHill - avatar
+ 3
It works for me. Some things you will need to watch out for: * What @Justin said * Packages * Having classes on separate files * When pasting the spacing / indentation might get very messy.
14th Jun 2017, 3:52 PM
Rrestoring faith
Rrestoring faith - avatar