Online Hibernate Training just in Rs. 1000

One week online training in Hibernate ORM framework. Learn Hibernate Framework and enhance your skills. Best Online Hibernate training at 90% discount. Join Now!! Offer is valid Only for limited Period!!! Online Training Big Data and Hadoop Training Java Training  
 

Java programming using ArrayList Help?

Ads

 
 

Share on Google+Share on Google+

Shinichi
Java programming using ArrayList Help?
0 Answer(s)      4 years and 4 months ago
Posted in : Java Beginners

Hi,can anybody help and guide me on doing this java program? (Largest rows and columns)Write a program that randomly fills in 0s and 1s into an n-by-n matrix,prints the matrix,and finds the rows and columns with the most 1s.(HINT:Use two ArrayLists to store the row and column indices with the most 1s.

Here are the output required: Enter the array size n : 4 //input by user

The random array is

0011

0011

1101

1010

The largest row index : 2

The largest column index : 2,3

Any help would be greatly appreciated .

Ads
View Answers
Ads