Changes between Version 1 and Version 2 of ControlSystems/SoftwareTeam/Training/GettingStarted/IntroJava


Ignore:
Timestamp:
Sep 30, 2019, 3:59:23 PM (6 years ago)
Author:
David Albert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/Training/GettingStarted/IntroJava

    v1 v2  
    15154. Select File->Save and name the file Hello.java
    16165. 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!
     176. A terminal window will open, the program will be compiled and then run; you'll see the output: Hello world!
    1818
    1919== Variables
     
    2121
    22221. Close the Hello World folder (File->Close Folder)
    23 2. Make a new folder in your Java Projects folder named VariablesExample
     232. Make a new folder in your Java Projects folder named !VariablesExample
    24243. Open the folder (File->Open Folder)
    25254. Create a new file: (File->New)
     
    3939}
    4040}}}
    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 Run
     416. Save the file as !VariablesExample.java (File->Save)
     427. Run the program: right click on !VariablesExample.java in the left panel and select Run
    43438. In the output terminal window, observe that the number 12 is output.
    44449. Change the program, adding more variables, changing numbers and the formula and run it again.
    4545
    4646== 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.
     47With 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.
    48481. Click Debug->Start Debugging
    49492. The program will start running but will stop (break) at line 7