Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package forLoops;
- import java.util.Scanner;
- public class P05CharacterSequence {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- String text = scanner.nextLine();
- for (int i = 0; i < text.length(); i++) {
- char symbol = text.charAt(i);
- System.out.println(symbol);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement