[Solved] : Question 12712

I want to print out two arrays next to each other horizontally, but can only seem to print them one after the other…

System.out.println ( “Customer ID, Transaction Value ” );

for (int i = 0; i < customerID.length; i++) {
System.out.println(customerID[i]);
}

for (int i = 0; i < transactionValue.length; i++) {
System.out.println(transactionValue[i]);

I would like them to be like this.

Customer ID, Transaction Value
1, 33.33
2, 44.44

Any ideas?


Expert Answer


Answer to : Question 12712

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?