{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

MomiaAplicacion - import java.io i import java.util Elas...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.io.*; import java.util.*; i /* Elías Hernández Ramírez * A00798214 * NOTA MISS: Importé la librería "util" para agregar <Date> en la impresión :D. */ i public class MomiaAplicacion { //Declaro los objetos de tipo Momia public static Momia m1, m2, m3; p public static void main(String args[]){ p //Creo los objetos de tipo Momia m1 = new Momia(); m2 = new Momia(); m3 = new Momia(); m //Doy los valores m1.setWeight(70); m1.setWidth(30); m1.setAge(20); m1.setName("Ramses II"); m2.setWeight(80); m2.setWidth(34); m2.setAge(27); m2.setName("Tutankamon"); m3.setWeight(50); m3.setWidth(28); m3.setAge(21); m3.setName("Nefertiti"); m //Imprimo System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}