Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class StreamLetters {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- String text = scanner.nextLine();
- //Softuni
- //отпечатваме символи -> позиции
- // начална стойност: 0
- // крайна стойност: дължина - 1
- for(int position = 0; position <= text.length() - 1; position++){
- System.out.println(text.charAt(position));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment