package javaapplication42; public class JavaApplication42 { /** * @param args the command line arguments */ public class Estudiantes { private int id; private String nombre; private int edad; private String direccion; private String telefono; private int anoEscolar; private double valorPension; public Estudiantes(int id, String nombre, int edad, String direccion, String telefono, int anoEscolar, double valorPension) { this.id = id; this.nombre = nombre; this.edad = edad; this.direccion = direccion; this.telefono = telefono; this.anoEscolar = anoEscolar; this.valorPension = valorPension; } public String imprimir() { return "ID: " + id + ", Nombre: " + nombre + ", Edad: " + edad + ", Dirección: " + direccion + ", Teléfono: " + telefono + ", Año escolar: " + anoEscolar + ", Valor de pensión: " + valorPension; } public void horario() { System.out.println("Horario de estudiantes: de lunes a viernes de 7 am a 2 pm"); } public void transporte() { System.out.println("El medio de transporte de los estudiantes es el bus escolar"); } } public class Administrativos { private int id; private String nombre; private int edad; private String direccion; private String telefono; private String areaTrabajo; private String tipoContrato; public Administrativos(int id, String nombre, int edad, String direccion, String telefono, String areaTrabajo, String tipoContrato) { this.id = id; this.nombre = nombre; this.edad = edad; this.direccion = direccion; this.telefono = telefono; this.areaTrabajo = areaTrabajo; this.tipoContrato = tipoContrato; } public String imprimir() { return "ID: " + id + ", Nombre: " + nombre + ", Edad: " + edad + ", Dirección: " + direccion + ", Teléfono: " + telefono + ", Área de trabajo: " + areaTrabajo + ", Tipo de contrato: " + tipoContrato; } public void horario() { System.out.println("Horario de administrativos: de lunes a viernes de 8 am a 5 pm"); } public void transporte() { System.out.println("El medio de transporte de los administrativos es el transporte público"); } } public class Escuela { public static void main(String[] args) { Estudiantes estudiante1 = new Estudiantes(1, "Juan Perez", 16, "Calle 123, Ciudad", "1234567", 10, 1000.00); Administrativos administrativo1 = new Administrativos(2, "Maria Rodriguez", 35, "Calle 456, Ciudad", "2345678", "Administración", "Contrato fijo"); System.out.println(estudiante1.imprimir()); estudiante1.horario(); estudiante1.transporte(); System.out.println(administrativo1.imprimir()); administrativo1.horario(); administrativo1.transporte(); } } }
# This is an <h1> tag ## This is an <h2> tag ###### This is an <h6> tag *This text will be italic* _This will also be italic_ **This text will be bold** __This will also be bold__ _You **can** combine them_ * Item 1 * Item 2 * Item 2a * Item 2b 1. Item 1 1. Item 2 1. Item 3 1. Item 3a 1. Item 3b http://github.com - automatic! [GitHub](http://github.com) As Kanye West said: > We're living the future so > the present is our past. I think you should use an `<addr>` element here instead.