-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprincipal.java
More file actions
105 lines (69 loc) · 2.37 KB
/
principal.java
File metadata and controls
105 lines (69 loc) · 2.37 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
package POO_ev2;
//import java.io.*;
import java.util.Scanner;
//import java.util.ArrayList;
public class principal
{
public static void main (String[] args)
{
/*
if (proj!=work)
{
work;
}
*/
System.out.println("/////VIDEOCLUB GAMES&VIDEOS/////");
System.out.println(" /////BIENVENID@///// ");
System.out.println("t: Despliega todos los productos.");
System.out.println("p: Despliega todas las películas.");
System.out.println("v: Despliega todos los videojuegos.");
System.out.println("s: Checar si una película está rentada.");
System.out.println("j: Verifica si un videojuego está o no rentado.");
System.out.println("c: Devuelve la cantidad de películas que están rentadas.");
System.out.println("x: Indica la cantidad de videojuegos cuya plataforma es Xbox One.");
System.out.println("u: Termina el programa.");
Scanner input = new Scanner(System.in);
String newinput = input.next();
input.close();
switch (newinput)
{
case "T":
case "t":
System.out.println("Desplegando todos los productos...");
//System.out.println(name.getprod_nombre());
break;
case "P":
case "p":
System.out.println("peliculas en ");
break;
case "V":
case "v":
System.out.println("correcto");
break;
case "S":
case "s":
System.out.println("correcto");
break;
case "J":
case "j":
System.out.println("correcto");
break;
case "C":
case "c":
System.out.println("correcto");
break;
case "X":
case "x":
System.out.println("plataforma: ");
break;
case "U":
case "u":
System.out.println("TERMINANDO PROGRAMA");
System.exit(0);
break;
default:
System.out.println("COMANDO NO RECONOCIDO, SALIENDO DEL PROGRAMA");
break;
}
}
}