deyanivanov966

QuanterallTaskOne

Sep 8th, 2021 (edited)
858
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.62 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class QuanterallTaskOne {
  3.     public static void main(String[] args) {
  4.         Scanner scanner = new Scanner(System.in);
  5.  
  6.         int Word = Integer.parseInt(scanner.nextLine());
  7.         int PageNumber = Integer.parseInt(scanner.nextLine());
  8.  
  9.         String[] KeyWord = {"University", "Java", "JavaScript", "PHP", "HTML", "CSS", "Spring", "Vue", "Angular", "CSS", "CSS"};
  10.  
  11.         for (int index = 0; index < KeyWord.length; index++) {
  12.  
  13.             // Print each element on a separate line
  14.  
  15.             System.out.printf("element[%d] = %s%n", index, KeyWord [index]);
  16.  
  17.         }
  18.  
  19.     }
  20. }
Add Comment
Please, Sign In to add comment