NumeroApp - import java.io i import java.util p public...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.io.*; import java.util.*; i public class NumeroApp{ p public static Numero n1, n2, n3, n4, n5; public static Scanner teclado; p public static void main(String args[]){ p teclado = new Scanner(System.in); t System.out.println("Ingrese el valor del número 1: "); n1 = new Numero(teclado.nextInt()); System.out.println("Ingrese el valor del número 2: "); n2 = new Numero(teclado.nextInt()); System.out.println("Ingrese el valor del número 3: "); n3 = new Numero(teclado.nextInt()); n System.out.println("\n*********** Igualdades ***********"); if(n1.igual(n2)){ System.out.println("°n1 y n2 sí son iguales."); }else{ System.out.println(" “n1 y n2 no son iguales.");} S if(n2.igual(n3)){ System.out.println("°n2 y n3 sí son iguales."); }else{ System.out.println(" “n2 y n3 no son iguales.");} S if(n1.igual(n3)){ System.out.println("°n1 y n3 sí son iguales."); }else{ System.out.println(" “n1 y n3 no son iguales.");} S System.out.println("\n************ Mayores ************"); n4 = n1.elMayor(n2); System.out.println("°n1: "+n1.toString()+" | n2: "+n2.toString() +" | El Mayor de estos 2 números es: "+n4.traduce()); n4 = n2.elMayor(n3); System.out.println("°n2: "+n2.toString()+" | n3: "+n3.toString()
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '09
  • X
  • n-1, Minoría de edad, Fuerza Aérea Colombiana, System.out.println("\n************ Menores, static scanner teclado

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern