Skip to content

Commit 99bbfd1

Browse files
authored
Merge pull request mouredev#6793 from NievesYonathan/solucion-java
#00 - JAVA
2 parents 3fa03d1 + b3670e1 commit 99bbfd1

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
}

0 commit comments

Comments
 (0)