Computer Program Technology
Wednesday, 12 September 2012
Java program codes: Java program for Two Dimensional Array
class TwoDArray
{
public static void main(String []args)
{
String [][]names={{"Mr.","Mrs.","Ms."},{"Sam","Jones"}};
System.out.println( names[0][0] + names[1][0]);
System.out.println(names[0][2] + names[1][1]);
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment