Solved: Write a complete Java program for the following questions

By |

Write a complete Java program for the following questions: [1.5 Points]

        Write a program that print the following on the screen.

        Java
        Java Java
        Java Java Java
        Java Java Java Java
        Java Java Java Java Java

Answer Preview

public static void main(String[] args) {
        int lines = 5;
        for (???????) {
            for (int j = 1; j <= i; j++) {
                System.out.print(???????);
            }
            System.out.println(????);
        }
    }

Get Answer Now


Buy (USD $7.90)