Skip to content

Commit 7cfa97a

Browse files
authored
Merge pull request mouredev#4229 from JesusAntonioEEscamilla/JesusAEE
#00 - Java
2 parents ccace75 + 7041325 commit 7cfa97a

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
/** #00 - Java -> Jesus Antonio Escamilla */
2+
3+
//Estas son las paginas oficiales de Java => https://www.java.com/es/ y https://www.oracle.com/java/
4+
5+
// Esta es una linea
6+
7+
/*
8+
* Este es un comentario de multiples líneas.
9+
* Y se puede agregar mas
10+
* o las que necesites
11+
*/
12+
13+
14+
public class JesusAntonioEEscamilla {
15+
public static void main(String[] args) {
16+
17+
// Declaración de una constaten
18+
final String mi_Const = "Soy una constante";
19+
20+
//BYTE
21+
byte byteVariable = 127;
22+
23+
//SHORT
24+
short shortVariable = 32767;
25+
26+
//INT
27+
int intVariable = 247483647;
28+
29+
//LONG
30+
long longVariable = 9223372036854775807L;
31+
32+
//FLOAT
33+
float floatVariable = 3.14F;
34+
35+
//DOUBLE
36+
double doubleVariable = 3.141592653589793;
37+
38+
//CHART
39+
char charVariable = 'A';
40+
41+
//BOOLEAN (true / false)
42+
boolean booleanVariable = true;
43+
44+
//STRING
45+
String stringVariable = "¡¡Hola Mundo!!";
46+
47+
// Imprimiendo la Constante
48+
System.out.println("Soy una constante " + mi_Const);
49+
50+
// Imprimiendo los datos Primitivos
51+
System.out.println("byte: " + byteVariable);
52+
System.out.println("short: " + shortVariable);
53+
System.out.println("int: " + intVariable);
54+
System.out.println("long: " + longVariable);
55+
System.out.println("float: " + floatVariable);
56+
System.out.println("double: " + doubleVariable);
57+
System.out.println("char: " + charVariable);
58+
System.out.println("boolean: " + booleanVariable);
59+
System.out.println("string: " + stringVariable);
60+
61+
//Imprimiendo en terminal
62+
System.out.println("¡Hola, Java!");
63+
}
64+
}

0 commit comments

Comments
 (0)