0% found this document useful (0 votes)
4 views1 page

Ejemplos de Código en Java

The document contains Java code snippets demonstrating variable declarations and basic operations. It includes examples of data types such as double, boolean, char, and String, along with methods for string manipulation and array handling. The code also showcases output statements for displaying results in the console.

Uploaded by

rogerzahir2007
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Ejemplos de Código en Java

The document contains Java code snippets demonstrating variable declarations and basic operations. It includes examples of data types such as double, boolean, char, and String, along with methods for string manipulation and array handling. The code also showcases output statements for displaying results in the console.

Uploaded by

rogerzahir2007
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

Control Z para poder borrar un error

double age = 15.50f;


[Link](age);

boolean isActive = true;


char curso = 'A';
[Link](isActive);
[Link](curso);
String text = "Que hubo mijo";
int largo = [Link]();
[Link](largo);
String texto = [Link]("hubo","Chao");
[Link](texto);
[Link]([Link]("ijo"));
[Link]([Link]("Cha"));
String malo = " Perro feo ";
[Link]([Link]());
[Link](malo);

String texto = "Hola \nAmigo";


[Link](texto);

String text = "Hola \tAmigo";


[Link](text);

int[] numeros = new int[3];


numeros[0] = 1;
numeros[2] = 3;
numeros[1] = 2;
[Link]([Link](numeros));

You might also like