Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class QuanterallTaskOne {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int Word = Integer.parseInt(scanner.nextLine());
- int PageNumber = Integer.parseInt(scanner.nextLine());
- String[] KeyWord = {"University", "Java", "JavaScript", "PHP", "HTML", "CSS", "Spring", "Vue", "Angular", "CSS", "CSS"};
- for (int index = 0; index < KeyWord.length; index++) {
- // Print each element on a separate line
- System.out.printf("element[%d] = %s%n", index, KeyWord [index]);
- }
- }
- }
Add Comment
Please, Sign In to add comment