We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6a60ddd + 12d86ae commit 38088eeCopy full SHA for 38088ee
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/java/CristianMR87.java
@@ -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