1. UNIVERSIDAD REGIONAL AUTÓNOMA DE LOS
ANDES “UNIANDES”
TEMA:
PROGRAMACION EN JAVA
ESTUDIANTE:
Jonathan Israel
DOCENTE:
Luis Guallpa
2. CLASE LAPTO:
packageclaselapto;
/**
*
* @author JONATHANS
*/
importjava.util.*;
public class ClaseLapto {
/**
* @paramargs the command line arguments
*/
String Marca,Procesador;
double Ram;
publicClaseLapto()
{
Scanner teclado = new Scanner(System.in);
System.out.println("Ingrese la marca de la lapto>>:");
4. /**
*
* @author JONATHANS
*/
importjava.util.*;
public class ClaseLibros {
/**
* @paramargs the command line arguments
*/
StringNombreLib,Narrativa,Simetrica;
publicClaseLibros()
{
Scanner teclado =new Scanner(System.in);
System.out.println("Ingrese el nombre del Libro:");
this.NombreLib=teclado.nextLine();
System.out.println("Ingresar genero:");
this.Narrativa=teclado.nextLine();
System.out.println("Ingrese la metrica de los versos;");
this.Simetrica=teclado.nextLine();
}
publicvoidMuestreClas()
9. public class MOTOR {
/**
* @paramargs the command line arguments
*/
StringMarca,Servicio;
int Hp;
public MOTOR ()
{
Scanner teclado =new Scanner(System.in);
System.out.println("Ingrese la marca del motor:");
this.Marca=teclado.nextLine();
System.out.println("Ingrese el Servicio");
this.Servicio=teclado.nextLine();
System.out.println("Ingrese el caballage");
this.Hp=teclado.nextInt();
}
publicvoidMuestraMotores(){
System.out.println(Marca);
System.out.println(Servicio);
System.out.println(Hp);
}
public static void main(String[] args) {
// TODO code application logic here
//MOTOR h1;