Ok, have you managed to run this code and had a look at what it prints?
Currently your code is just printing "=" once per line, can you see how this statement
System.out.println("=");
never changes? Every time the loop is run, this statement is called, with the same "=" in the print statement.
We need a way to change that print statement, so that each time the loop runs, what it prints is different.
So if we store the "=" in a variable and and print that variable, we can add another "=" to that variable every time the loop runs.
int twoLines = 0;
string output = "="
while (twoLines < 10){
// first print the output
System.out.println(output);
// then change the output variable, so that the next loop
// prints a longer string
output += "=";
// then increment the twoLines variable
twoLines++;
}
The line;
output += "=";
is a little short cut for concatenation. Concatenation is the process of adding strings together. By using the '+=' operator, I'm saying that I want to add the string "=" to the end of the string output.
The line;
twoLines++;
is another little shortcut for incrementing a variable. The '++' operator adds 1 to the variable.
So in short, you just want to look at how you can change the print statement to reflect the change you want to see each time the loop is run.