Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners one error but i dont know how to fix it o_O!!!
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


tofi
one error but i dont know how to fix it o_O!!!
1 Answer(s)      3 years and 9 months ago
Posted in : Java Beginners


where is the mistake here ??

import java.utill.Scanner; public class Time { public static void main (String [] args) {

    Scanner keyboard = new Scanner (System.in);
    System.out.println ("Enter Secends");
    int Secends = keyboard.next();
    int houres = Secends / 3600;
    int minutes = (Secends % 3600)/60;
    int newSecends = Secends - houres * 3600 + minutes * 60;
    System.out.println (Secends+"Secends have"+houres+"houres,"+minutes+"minutes and"+new Secends+"secends");
}

}

the compilar told me that there is only one error...

thx..,


Advertisement
View Answers

March 1, 2011 at 10:48 AM


import java.util.Scanner;
public class Time {
    public static void main (String [] args) {

    Scanner keyboard = new Scanner (System.in);
    System.out.println ("Enter Secends");
    int Secends = keyboard.nextInt();
    int houres = Secends / 3600;
    int minutes = (Secends % 3600)/60;
    int newSecends = Secends - houres * 3600 + minutes * 60;
    System.out.println (Secends+"Secends have"+houres+" houres,"+minutes+" minutes and"+newSecends+" secends");
}
}


Related Tutorials/Questions & Answers:
 

 

 

DMCA.com