Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

how to Insert Array Values Into Separate Rows using java?

Ads

 
 

Share on Google+Share on Google+

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

how to Insert Array Values Into Separate Rows using java?

Ads
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");
            }
        }
    }
}

Ads









Related Tutorials/Questions & Answers:
Advertisements