File tree 1 file changed +32
-0
lines changed
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/java
1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ // https://www.java.com/es/
2
+
3
+ /* Esto es un comentario estilo C que puede ocupar varias líneas */
4
+ // Esto es un comentario que se extiende hasta el final de la línea
5
+
6
+ /**
7
+ * @author NievesYonathan
8
+ * Esto es un comentario de javadoc que puede extenderse entre varias líneas
9
+ **/
10
+
11
+ public class NievesYonathan {
12
+ // Variable de tipo string
13
+ String nombre = "Yonathan" ;
14
+
15
+ // Constante
16
+ final String apellido = "Nieves" ;
17
+
18
+ // Lista de variables según dato primitivo
19
+ byte centenas = 0 ;
20
+ short decenaMil = 15000 ;
21
+ int billon = 1365874589 ;
22
+ long granNum = 9223372036854775807L ;
23
+ float e = 2.7182f ;
24
+ double pi = 3.14159265358979323846 ;
25
+ boolean rendirse = false ;
26
+ char z = 'Z' ;
27
+
28
+ public static void main (String [] args )
29
+ {
30
+ System .out .println ("Hola JAVA!" );
31
+ }
32
+ }
You can’t perform that action at this time.
0 commit comments