Thursday, 15 September 2011

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]);
}
}




Post a Comment