Best way to print out a 2d array

Assignment Help Business Management
Reference no: EM132103505

AVA

What would be the best way to print out a 2D array, and have the rows/columns line up, even if some of the elements are null(not initialized) and others are not? For example if I use a nested for loop to print out a 7x7 array...

for(int I = 0; I <7; i++){

for(int2 = 0; I<7; i2++){

System.out.println(array[i][i2])+" ");

}

System.out.println("");

}

I get a print out where the rows and columns are not aligned, when some of the elements are initialized and others are not. Hope that makes sense. Thanks!

Reference no: EM132103505

Questions Cloud

Draw two vector diagrams with a magnetic field : A compass is placed east of a wire. Draw two vector diagrams with a magnetic field felt by the compass. one with current and one without current.
What is the length of an edge of each small cube : Consider an ideal gas at 27.0 degrees Celsius and 1.00 atmosphere pressure. Imagine the molecules to be uniformly spaced, with each molecule at the center.
What is the sound intensity at the position of microphone : A concert loudspeaker suspended high off the ground emits 34.0 W of sound power. A small microphone with a 1.00 cm^2 area is 53.0 m from the speaker.
Develop an estimated monthly budget : Develop plans for alternate site relocation, and develop an estimated monthly budget for the alternate site operations.
Best way to print out a 2d array : What would be the best way to print out a 2D array, and have the rows/columns line up, even if some of the elements
Write an expression determining the spring constant : If this cable is pulled down a distance d in m from its equilibrium position it acts like a spring when released. Write an expression determining the spring.
Compare the electric force holding the electron : Compare the electric force holding the electron in orbit (r = 0.53x10 (-10)m around the proton nucleus of the hydrogen atom.
How many types of magic tables available in sql server : Does a clustered index have to be created on the primary key column?
How much time elapses between the hit and the ball reaching : If the ball leaves the bat at 110 mph, how much time elapses between the hit and the ball reaching the pitcher? Express your answer to two significant figures.

Reviews

Write a Review

Business Management Questions & Answers

  How much effort should you invest in any one person

How much effort should you invest in any one person? How much effort and mentoring is appropriate, and when are a manager's efforts too much?

  What strategy was the ceo employing during the acquisition

Describe and analyze the senior management team dynamics. Comment on their effectiveness and what strategy was the CEO employing during the acquisition due diligence process. In what situation do you think it could be effective?

  Evaluation criteria establishing a scoring system

Selecting key evaluation criteria, establishing a scoring system, and weighing each evaluation criterion are all main steps that _____.

  What will be some of challenges in motivating your employees

What will be some of the challenges in motivating your employees? How will you overcome these challenges? Will you incorporate any incentive programs? Why?

  What is the anthropocentric critique of sustainability

What is the anthropocentric critique of sustainability? How does Michel Serres conceptualize the human relationship to nature? What does Serres think must be done about this relationship?

  Customer service-good and bad experiences and why

Share some stories about recent positive and negative customer service experiences. What specifically made these experiences either good or bad?

  Looking at adam smith and durkheim

Looking at Adam Smith and Durkheim, how do their definitions of division of labor differ? How do their theories maintain a greater society?

  Why is this case a good example of the business case

How does an inclusion strategy for diversity differ from a valuing differences strategy? Why is this case a good example of the business case for diversity

  Encourage supervisors to be effective coaches

1. Supervisors often resist taking on the role of coach. What can organizations do to encourage supervisors to be effective coaches?

  Develop an madm table with the raw data

Develop an MADM table with the raw data. Convert the raw data to utilities (scaled on 0 to 1). Show the utility weights in a second table. Develop a third table with even weights (16.7%) for each variable.

  Training return on investment

An organization lost 125 employees last year, at a cost of $5,000.00 each. (Value is derived from cost to rehire and fill opening, as well as lost investment in the employee.) You suggest that a one-time investment in a training program (costing $..

  Are testout pro certifications industry certifications

What authority, approval, or recognition is required to create certification? Are TestOut Pro Certifications industry certifications?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd