-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTipos.java
More file actions
30 lines (25 loc) · 712 Bytes
/
Tipos.java
File metadata and controls
30 lines (25 loc) · 712 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
package com.maxbotero;
public class Tipos {
public static void main(String[] args) {
//enteros
byte number1 = 1;
System.out.println(number1);
short number2 = 2;
System.out.println(number2);
int number3 = 3;
System.out.println(number3);
long number4 = 4;
System.out.println(number4);
//texto
String nombre = "Max";
System.out.println(nombre);
//decimales
double numDecimal = 2.5d;
System.out.println(numDecimal);
float numFloat = 1.6f;
System.out.println(numFloat);
//boolean
boolean registrado = false;
System.out.println(registrado);
}
}