Skip to content

Commit 38088ee

Browse files
authored
Merge pull request mouredev#4287 from CristianMR87/Soluciones
#00 - Java
2 parents 6a60ddd + 12d86ae commit 38088ee

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
public class CristianMR87 {
2+
public static void main(String[] args) {
3+
4+
// https://www.java.com/es/
5+
6+
//Comentario en una linea
7+
/*
8+
* Comentario
9+
* en
10+
* varias
11+
* lineas
12+
*/
13+
14+
//Crear una variable:
15+
int miVariable = 1234;
16+
final int constante = 1;
17+
18+
//Variables con tipos de datos primitivos
19+
int valorInt = 12;
20+
double valorDouble = 12.3;
21+
float valorFloat = 12.4f;
22+
String valorString = "JAVA";
23+
char valorChar = 'A';
24+
boolean valorBoolean = true;
25+
26+
System.out.println("Hola, "+valorString);
27+
28+
29+
30+
}
31+
}

0 commit comments

Comments
 (0)