mirror of
https://dev.azure.com/Foster-X/CMP329%20CW2/_git/CMP329%20CW2
synced 2025-07-29 06:13:36 +00:00
17 lines
No EOL
793 B
Java
17 lines
No EOL
793 B
Java
package main;
|
|
|
|
//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
|
|
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
|
|
public class Main {
|
|
public static void main(String[] args) {
|
|
//TIP Press <shortcut actionId="ShowIntentionActions"/> with your caret at the highlighted text
|
|
// to see how IntelliJ IDEA suggests fixing it.
|
|
System.out.printf("Hello and welcome!");
|
|
|
|
for (int i = 1; i <= 5; i++) {
|
|
//TIP Press <shortcut actionId="Debug"/> to start debugging your code. We have set one <icon src="AllIcons.Debugger.Db_set_breakpoint"/> breakpoint
|
|
// for you, but you can always add more by pressing <shortcut actionId="ToggleLineBreakpoint"/>.
|
|
System.out.println("i = " + i);
|
|
}
|
|
}
|
|
} |