-3

Below is my code which is throwing compile-time error.

import Java.util.Scanner;
class gucci{
    public static void main(String args[]){
        Scanner ice = new Scanner(System.in);

        int lost = 5;
        int sauce = 18;
        lost++;   
        System.out.println(lost);
        Stytem.out.println(lost);
    }
} 

What is wrong with the code here?

manniL
  • 7,157
  • 7
  • 46
  • 72
Yo Skolo
  • 3
  • 1

1 Answers1

-1

Please find the correct one. Compare the code to have better understanding :

 import java.util.Scanner; // not the Java.util.Scanner
    public class Gucci{
        public static void main(String args[]){
            Scanner ice = new Scanner(System.in);
            int lost = 5;
            int sauce = 18;
            lost++;   
            System.out.println(lost);
            System.out.println(lost); // not the Stytem.out.println(lost);
        }
    } 
dildeepak
  • 1,349
  • 2
  • 16
  • 34