Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#00 - Kotlin #7702

Merged
merged 3 commits into from
Jan 30, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Primer reto en Java
  • Loading branch information
AnCarlu committed Jan 28, 2025
commit 6532d4e02362b956f1c59040a4ba567fcbbd8054
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
//https://www.java.com/es/

//Comentarios en Java

//Comentario de una linea

/*
Comentario de varias lineas
*/

/*
*Comentarios en bloque
*
*/
public static void main (String [] args){
//Variables y constantes
String variable = "variables en java";
final String constante = "Java";

//Datos primitivos en Java
char unicode = '&';
byte numeroMasPequeño = 1;
short numeroPequeno = 2;
int numero = 10;
long numeroMayor= 152645231;
float numeroComaFlotante = 45.25f;
double numeroDecimal = 45.55;
boolean operadorLogico = false;

//Impresion por pantalla del saludo
System.out.println("Hola " + constante);
}