Skip to content

Commit 82ffd43

Browse files
authored
Merge pull request mouredev#7758 from AnCarlu/main
#00-java
2 parents a6464e8 + 861e31e commit 82ffd43

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
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
//https://www.java.com/es/
2+
3+
//Comentarios en Java
4+
5+
//Comentario de una linea
6+
7+
/*
8+
Comentario de varias lineas
9+
*/
10+
11+
/*
12+
*Comentarios en bloque
13+
*
14+
*/
15+
public static void main (String [] args){
16+
//Variables y constantes
17+
String variable = "variables en java";
18+
final String constante = "Java";
19+
20+
//Datos primitivos en Java
21+
char unicode = '&';
22+
byte numeroMasPequeño = 1;
23+
short numeroPequeno = 2;
24+
int numero = 10;
25+
long numeroMayor= 152645231;
26+
float numeroComaFlotante = 45.25f;
27+
double numeroDecimal = 45.55;
28+
boolean operadorLogico = false;
29+
30+
//Impresion por pantalla del saludo
31+
System.out.println("Hola " + constante);
32+
}

0 commit comments

Comments
 (0)