-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathExample_v0.java
More file actions
20 lines (17 loc) · 499 Bytes
/
Example_v0.java
File metadata and controls
20 lines (17 loc) · 499 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import java.util.Random;
public class Example {
public void hello() {
System.out.println("Hello everybody!");
System.out.println("This code is a magnificent example");
System.out.println("For the ASE 2014 conference");
System.out.println("It draws a number at random");
System.out.println("Adds 10");
System.out.println("Multiplies by 10");
System.out.println("And displays it");
Random r = new Random();
int i = r.nextInt();
i += 10;
i *= 10;
System.out.println(i);
}
}