i am working on the same project and i got the code to make them print going down but not sideways.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
i am working on the same project and i got the code to make them print going down but not sideways.
Rock On
Moved to own thread.
Please start your own thread for your problem.
Do you have any specific questions?
Post the program's output and add some comments showing what you want the output to look like.
If you don't understand my answer, don't ignore it, ask a question.
i dont clearly know what your problem is but if i have understood right, you can have sideways printing by using
if you have more problem, be a little more specific.System.out.print()
System.out.println() prints the next string or value in the new line hence printing going in the downward direction.
ZaneDarklace (February 14th, 2014)
the code i posted creates an array of decimal numbers 65 - 90 on the left hand side and they print straight down. i have a code next to it that prints characters a - z and they go straight down. i would like to have it to where the decimal prints left to right then the characters print left to right under it. That is the issue i am having.
--- Update ---
I have a completed code. This one works now. Thankyou for all the help.
public class ArrayofHope { public static void main(String args[]) { System.out.println("Decimal"); for(int a = 65; a <= 90; a++) { System.out.print(a + ","); } { System.out.print("\n"); System.out.print("\n"); } { System.out.println("Character"); for(int j = 65; j <= 90; j++) { System.out.print((char)j + ","); } } } }
Rock On