Printing Vertically With Arrays (PLEASE HELP TIME SENSITIVE)

So my professor asked my class to print out Hello World normally on a horizontal line but he gave us the letters in a vertical array as shown. What I need help with is trying to fix it so it prints Hello World like normal. Below is the code I have and I just can't get it to print right. Please help :)

public static void main(String[] args) {

// TODO Auto-generated method stub

String [][] myArray = {{"H","W",

"E","O",

"L","R",

"L","L",

"O","D"}};

String word = "";

for (int row = 0; row < myArray.length; row++)

{

for (int col =...

Read More »

By: StackOverFlow - Monday, 16 April

Related Posts