How do I go about making the input screen ask to input your name? Instead of showing up after inputting the name and just showing up with the name under the text?
12/13/2018 7:45:28 PM
Dustin James Locey18 Answers
New AnswerAs per my experience , the Interactivity that you wan't in your code is not possible in sololearn app for languages like java, c++,c etc. input is taken before running the code ,code runs at their server and then the output is displayed on the screen.
Ohh, okay, if I wasnt to use sololearn for it and just writing a java program, how would I go about doing that?
One more question. To run it on my pc, I need to use java doc right? And do I just go to the java folder and open java doc? I've never really used anything java related before
Follow these steps to run your code in command line. 1. Write your code in a text file and save it with .java extension and save . 2. Now set the path of command line to the directory in which you have saved your file. 3. Write this code in commnd line. javac filename. java. 4. Now write . java filename. Your code should run. In the above instructions filename is the name by which you have saved your java file. In the steps mentioned above. I am expecting you to know how to change working directory in command line.
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message