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

  Habits of highly effective people

Please write a book review ( The 7 Habits of highly effective People) by Stephen Covey .

  Creating a project plan based on core planning

creating a project plan based on core planning processesobjectivecreate a project plan based upon the core planning

  Undertaking vertical integration

Should Businesses should maintain their home country standards with regards to the environment and employment when undertaking vertical integration?

  What are fredericks rights if any against anderson

Thereafter, Frederick gave due notice of dishonor to Anderson, Bylinski, and Conrad. What are Frederick's rights, if any, against Anderson, Bylinski, Conrad, and D'Aveni on the note?

  Find performance attribution analysis

Not only do clients fnid performance attribution analysis helpful but so does the chief investment officer of an asset management firm in evaluating.

  Describe the moral basis and social power of corporations

What is the "free-market theory" of corporate responsibility for consumers and what are some of the problems associated with this view? Briefly describe the moral basis and social power of corporations as stakeholders

  Describe situation in which an employee of rpz face conflict

Describe a situation in which an employee of RPZ might face a conflict between the company's organizational values and its code of ethics, and it might be resolved.

  Choosing a power supply

Discuss three considerations you should keep in mind when choosing a power supply. Explain your answer

  Recommend working with preferred vendors

Some experts recommend working with preferred vendors even if their prices are higher than other vendors. Why do you think this is the case?

  Create action plan to overcome weakness you have identified

Create an action plan to overcome each weakness you've identified & outline the steps that you can take to grow in each area of streght you identified.

  Mean from both a practical and a statistical viewpoint

Considering the hypotheses created in question 5, if the results of a statistical test on them returned a statistically significant result, what would that mean from both a practical and a statistical viewpoint?

  Who is targeted audience for chase bank

Who is targeted audience for Chase Bank, have they been successful or unsuccessful...share a comprehensive SWOT.

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