-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathNotes.java
More file actions
50 lines (28 loc) · 1.21 KB
/
Copy pathNotes.java
File metadata and controls
50 lines (28 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
public class Notes {
/**
* @param String[] args
* @since 1.0
*/
// Annotation to ignore the "unused" category of annotations, such as unused variables.
// Uncomment to enable
//@SuppressWarnings("unused")
public static void main(String[] args) {
// Using TODO can be used to mark imcomplete things.
// TODO: Print statements
// TODO: Concatenation and escape sequences
// TODO: Declare an integer
// TODO: Initialize an integer
// TODO: Declare and Initialize an integer
// TODO: Declare and Initialize a double precision decimal number
// TODO: Declare and Initialize a String object
// Create a random number just for fun
int i3 = lib.Randomizer.nextInt(-10, 10);
// TODO: Flow Control
// TODO: for loop
// The x++ operator adds one to the value of a variable, while x-- would do the opposite
// The ++X operator adds one, but earlier (eg: before a loop runs vs. after);
// Note that i is a local varibble too this for loop
// TODO: while loop
// watch out for infinite loop!
}
}