Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ru.itsjava;
- public class CycleHW {
- public static void main(String[] args) {
- int count = 0;
- while (count < 10) {
- System.out.println((count + 1) + ") " + "I Love Java!");
- count++;
- }
- int[] numb = new int[]{0, 2, 5, 6, -9, 3, 7, 8, 2, 6};
- System.out.println(numb[3] + "," + numb[5]);
- System.out.println("Lenght = " + numb.length);
- for (count = 0; count < 3; count++) {
- System.out.println("I Love programing in Java!");
- }
- System.out.print("Array: {");
- for (count = 0; count < numb.length-1; count++) {
- System.out.print(numb[count] + ", ");
- }
- System.out.print(numb[numb.length-1]+"}");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement