View Code of Problem 77

import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
       String s =scan.nexLine();
      char[] c=s.toCharArray();
      System.out.print(c[0]+" "+c[1]+" "+c[2]+" "+c[3]);
           
    }
  
  
}
/*
Main.java:7: error: cannot find symbol
       String s =scan.nexLine();
                     ^
  symbol:   method nexLine()
  location: variable scan of type Scanner
1 error
*/

Double click to view unformatted code.


Back to problem 77