Changes between Version 1 and Version 2 of ControlSystems/SoftwareTeam/Training/GettingStarted/IntroJava
- Timestamp:
- Sep 30, 2019, 3:59:23 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/Training/GettingStarted/IntroJava
v1 v2 15 15 4. Select File->Save and name the file Hello.java 16 16 5. In the left navigation window, you'll now see Hello.java with a red J icon next to it; right click on the Hello.java and select Run 17 6. A terminal window will open, the program wil be compiled and then run; you'll see the output: Hello world!17 6. A terminal window will open, the program will be compiled and then run; you'll see the output: Hello world! 18 18 19 19 == Variables … … 21 21 22 22 1. Close the Hello World folder (File->Close Folder) 23 2. Make a new folder in your Java Projects folder named VariablesExample23 2. Make a new folder in your Java Projects folder named !VariablesExample 24 24 3. Open the folder (File->Open Folder) 25 25 4. Create a new file: (File->New) … … 39 39 } 40 40 }}} 41 6. Save the file as VariablesExample.java (File->Save)42 7. Run the program: right click on VariablesExample.java in the left panel and select Run41 6. Save the file as !VariablesExample.java (File->Save) 42 7. Run the program: right click on !VariablesExample.java in the left panel and select Run 43 43 8. In the output terminal window, observe that the number 12 is output. 44 44 9. Change the program, adding more variables, changing numbers and the formula and run it again. 45 45 46 46 == Debugger 47 With the ExampleVariables.java program above open in the editor click to the left of the line number (7) for the line a=3; and a red dot will appear called a breakpoint.47 With the !VariablesExample.java program above open in the editor click to the left of the line number (7) for the line a=3; and a red dot will appear called a breakpoint. 48 48 1. Click Debug->Start Debugging 49 49 2. The program will start running but will stop (break) at line 7