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:9: error: ']' expected
      System.out.print(c[0]+" "+c[1]+" "+c[2]+" "+c[3);
                                                     ^
1 error
*/

Double click to view unformatted code.


Back to problem 77