deyanivanov966

05. Character Sequence

Oct 2nd, 2020 (edited)
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. import java.util.*;
  2.  
  3. public class Main {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.  
  7.         String text = scanner.nextLine();
  8.  
  9.        
  10.  
  11.         for (int i = 0; i <text.length() ; i++) {
  12.             char letter = text.charAt(i);
  13.          
  14.            System.out.println(letter);
  15.         }
  16.     }
  17. }
Add Comment
Please, Sign In to add comment