iSayDona

Showing category "DATSRUC" (Show all posts)

iSay_array2D

Posted by donabel malagamba on Friday, July 8, 2011, In : DATSRUC 
public class array2D{
    
    public static void main(String[]args){
        String [][] student = {{"john", "mark"},
                                {"james", "paolo"},
                                {"mary", "anna"},
                                {"kris", "france"}};
                                    
    for (int  row=0; row<4;row++){
        for(int  col=0; col<2;col++){
            System.out.println(student[row][col]);
        }
        }
        
    }
}...
Continue reading ...
 

array1D

Posted by donabel malagamba on Friday, July 8, 2011, In : DATSRUC 
public class array1D{
    public static void main (String[]args){
        int [] grade = {85,87,90,82,95};
        for (int i=0; i<5;i++){
            System.out.println(grade[i]);
        }
        }
    
}
Continue reading ...
 
 

harana.mp3

iSay_explore


donabel malagamba college IT student

Recent Posts