Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



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

Have Programming Question? Ask it here!
 
 
 


rakesh dilip patil
how to Insert Array Values Into Separate Rows using java?
1 Answer(s)      2 years and 3 months ago
Posted in : JSP-Servlet


how to Insert Array Values Into Separate Rows using java?


Advertisement
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 Tutorials/Questions & Answers:
Advertisements
 

 

 

DMCA.com