Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please explain with much detail. Thank you very much public class TwoDimArrayDemo 2 { public static void main ( String [ ] args ) {

Please explain with much detail. Thank you very much
public class TwoDimArrayDemo2{
public static void main(String[] args){
// TODO Auto-generated method stub
char[][] array = new char[23][10];
fillArray(array);
printArray(array);
}
public static void fillArray(char[][] arrayOne){
for(int i =0; i < arrayOne.length; i++){
for(int j =0; j < arrayOne[i].length; j++){
arrayOne[i][j]=(char)(5*Math.random()+65);
}
}
}
public static void printArray(char[][] arrayTwo){
for(int i=0; i < arrayTwo.length; i++){
for(int j =0; j < arrayTwo[i].length; j++){
System.out.println(arrayTwo[i][j]+"");
}
System.out.println("");
}
}
}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

Students also viewed these Databases questions

Question

Define marketing concepts.

Answered: 1 week ago

Question

1 what does yellow colour on the map represent?

Answered: 1 week ago