Array in Java


public class ArrayTest {

public static void main(String[] args) {

int nmbr[] = {12,13,10,12,22,36};

System.out.println("Numbers Are :");

for(int i =0; i<nmbr.length; i++ ){
System.out.println(nmbr[i]);
}

System.out.print("\n");


String[] name = {"PORAG","WASIM","SAM","NEWAJ"};

System.out.println("Names Are :");
for(int i = 0; i < name.length; i++){
System.out.println(name[i]);
}
}

}

 View Source Code

মন্তব্যসমূহ

  1. Lucky Club Online Casino - UK's #1 Site for Online Gambling
    Lucky Club Online Casino offers UK players 카지노사이트luckclub a great selection of fully licensed and regulated online casino games. You'll enjoy all the best in

    উত্তরমুছুন

একটি মন্তব্য পোস্ট করুন

Popular Posts

Simple 2D hut design in computer graphics using c++

HashMap in Java