Does it compile?
Does it run?
Does it do what you want?
Type: Posts; User: Junky
Does it compile?
Does it run?
Does it do what you want?
But if I told you how to do it I would have done the work not you. On the other hand if you make an attempt, get stuck and ask a specific question about your code I can provide hints and guide you...
Each loop will require 2 or more variables. You might also need to ise an if statement inside some of the loops. None are very difficult.
What do you expect us to do, write the code for you?
How about working out what the sequence for each output is. Some are easier than others. Once you know the sequence, the Java code will follow.