Advertisement
SensaBG

Obhojdane na string

Jul 31st, 2024
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class slavi {
  4.     public static void main(String[] args) {
  5.          Scanner scanner = new Scanner(System.in);
  6.  
  7.          String alphabet = "abcdefghijklmnopqrstuvwxyz";
  8.          
  9.          int alphabetEnd = alphabet.length();
  10.  
  11.         for (int i = 0; i <= alphabetEnd  ; i++) {
  12.            
  13.             System.out.println(alphabet.charAt(i));
  14.         }
  15.        
  16.     }
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement