Está en la página 1de 1

/*

* To change this license header, choose License Headers in Project Properties.


* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package variables;

/**
*
* @author CECY
*/
public class Variables {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here

int valor1=6;
float valor2=3.55f;
double valor3=6.66666;
char letra='a';
String cadena="hola";
boolean respuesta=true;

System.out.println("el valor de la variable 1 es:"+valor1);


System.out.println("el valor de la variable 2 es:"+valor2);
System.out.println("el valor de la variable 3 es:"+valor3);
System.out.println("el valor de la variable char es:"+letra);
System.out.println("el valor de la variable String es:"+cadena);
System.out.println("el valor de la variable boolean es:"+respuesta);

También podría gustarte