Home Answers Viewqa JSP-Servlet how to Insert Array Values Into Separate Rows using java?

 
 


rakesh dilip patil
how to Insert Array Values Into Separate Rows using java?
1 Answer(s)      a year ago
Posted in : JSP-Servlet

how to Insert Array Values Into Separate Rows using java?

View Answers

April 28, 2012 at 12:33 PM


class InsertArrayValuesInSeparateRow{
    public static void main(String[] args) 
    {
        String array[][]={{"1","Angel","Delhi"},{"2","John","Chennai"},{"3","William","Kolkata"},{"4","Martina","Mumbai"}};
        for(int i=0 ; i < array.length ; i++){
            System.out.println();
            for(int j=0 ; j < array[i].length ; j++){
                System.out.print(array[i][j]+"\t");
            }
        }
    }
}









Related Pages:

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.