SegundoApp

SegundoApp - int s = teclado.nextInt(); i s1 = new...

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 public class SegundoApp{ p public static Segundo s1; public static Scanner teclado; p public static void main(String args[]){ p teclado = new Scanner(System.in); t System.out.println("Introduzca su nombre:"); String n = teclado.next(); System.out.println("\nIntroduzca los segundos: ");
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: int s = teclado.nextInt(); i s1 = new Segundo(n, s); s System.out.println("\nHola "+s1.getNombre()+"."); System.out.println("El equivalente de "+s1.getSegundos()+ " segundos es " +s1.segundoMin()+ " minutos."); System.out.println("Que tengas buen da =)."); S } }...
View Full Document

Ask a homework question - tutors are online