-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExample.java
More file actions
34 lines (20 loc) · 885 Bytes
/
Example.java
File metadata and controls
34 lines (20 loc) · 885 Bytes
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
public class Example {
public static void main(String args[]){
PersonJ persona = new PersonJ();
persona.firstName = "Emiliano";
persona.surName = "del la crúz";
persona.age = 14;
System.out.println("********************************");
System.out.println(" WELCOME TO CINEMA CENTER ");
System.out.println("********************************");
System.out.println("");
System.out.println("WE WILL CHECK THIS ID.");
System.out.println("IF IT IS UNDER 18 THE PERSON CAN'T ENTER THE CINEMA...");
System.out.println("CHECKING...");
if(persona.age >= 18){
System.out.println("THIS PERSON CAN ENTER THE CINEMA!");
} else{
System.out.println("THIS PERSON *CANNOT* ENTER THE CINEMA!");
}
}
}