Win a copy of Rust Web Development this week in the Other Languages forum!
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
• Tim Cooke
• Campbell Ritchie
• Ron McLeod
• Liutauras Vilda
• Jeanne Boyarsky
Sheriffs:
• Junilu Lacar
• Rob Spoor
• Paul Clapham
Saloon Keepers:
• Tim Holloway
• Tim Moores
• Jesse Silverman
• Stephan van Hulst
• Carey Brown
Bartenders:
• Al Hobbs
• Piet Souris
• Frits Walraven

# arrays

Ranch Hand
Posts: 50
• Number of slices to send:
Optional 'thank-you' note:
i would greately appriciate if someone help me to sort this issue.
how to draw the multidimentional array to the following question?
class A{
public static void main(String ar[]){
int[][]a1 = {{1,2,3},{4,5,6},{7,8,9,10}};
System.out.println(a1[0][2]+","+a1[1][0]+","+a1[2][1]);

}
}

Ranch Hand
Posts: 241
• Number of slices to send:
Optional 'thank-you' note:

Originally posted by Hasitha_Randika:
i would greately appriciate if someone help me to sort this issue.
how to draw the multidimentional array to the following question?
class A{
public static void main(String ar[]){
int[][]a1 = {{1,2,3},{4,5,6},{7,8,9,10}};
System.out.println(a1[0][2]+","+a1[1][0]+","+a1[2][1]);

}
}

What do you mean by drawing multi dimensional array ?

If you wanted to see an arranged sequence of numbers in the following format then refer the code below
1,2,3
4,5,6
7,8,9,10

Greenhorn
Posts: 5
• Number of slices to send:
Optional 'thank-you' note:
hi,

i just sent you an email to your mail id just check.

 With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.