I think that you need to step away from posting all your homework on the forum and start studying your notes and texts because from all your posts it appears that you don't have a clue -- not even enough to understand the help that has been given you. This may seem cold and harsh but no matter how much help you get here, without serious study you will fail your course. There is no substitute.

First you need to define what the output is to look like, line by line.
Then write a line of code to print the first line.
Then look at what must be changed to print the next line.
Continue until done.

hints:
1) Consider using nested for loops -- one inside of the other.
2) You can also use System.out.print(...) if you want to display something without creating a new line.
3) And yeah, study your notes and texts. We can answer questions, but only you can put knowledge into your head.

hints:
1) Consider using nested for loops -- one inside of the other.
2) You can also use System.out.print(...) if you want to display something without creating a new line.
3) And yeah, study your notes and texts. We can answer questions, but only you can put knowledge into your head.

Much luck.

babes, it is my 3rd lesson. i have no books, all i have is the net. i cant do a while inside , a while, .. no one has taught me that.

1) Your inner loop is using the same loop variable, count rather than the new one, count1.
2) You're still using println where you should look into using print(..) as was suggeste above.
3) You really should read the tutorial on using for loops rather than while loops for this situation.

Also, when posting code here, please use code tags so that your code will retain its formatting and thus will be readable -- after all, your goal is to get as many people to read your post and understand your code as possible, right?

To do this, highlight your pasted code (please be sure that it is already formatted when you paste it into the forum; the code tags don't magically format unformatted code) and then press the code button, and your code will have tags.

Another way to do this is to manually place the tags into your code by placing the tag [cod&#101;] above your pasted code and the tag [/cod&#101;] below your pasted code like so:

Java Code:

[cod&#101;]
// your code goes here
// notice how the top and bottom tags are different
[/cod&#101;]

OK, now see if you can change your code simply to create a 12 x 12 matrix. And what if you want to have the code so that the user can input how big he wants the matrix to be? If you use nested for loops, this type of change can be done simply and easily by just changing one number.

Bottom line: if you want to do this assignment well, you'll use nested loops as suggested above. If you don't care, then just hand what you have in.

OK, now see if you can change your code simply to create a 12 x 12 matrix. And what if you want to have the code so that the user can input how big he wants the matrix to be? If you use nested for loops, this type of change can be done simply and easily by just changing one number.

Bottom line: if you want to do this assignment well, you'll use nested loops as suggested above. If you don't care, then just hand what you have in.

it is my 3rd lesson. The teacher is not interested in short code..he is interested in an answer. we studied using one loop, and i didn with one loop