Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package forLoop;
- import java.util.Scanner;
- public class P05CharacterSequence {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- String text = scanner.nextLine();
- //softuni
- //0 -> s
- //1 -> o
- //2 -> f
- //3 -> t
- //4 -> u
- //5 -> n
- //6 -> i
- int length = text.length();
- for (int i = 0; i < length; i++) {
- char symbol = text.charAt(i);
- System.out.println(symbol);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement