String Array


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package program;

/**
 *
 * @author Administrator
 */
public class StringArray166 {
    public static void main(String[] args) {
        String namaKota[]=
 {"pekanbaru","bandung","surabaya"};
        for(int i=0; i<=namaKota.length; i++){
            System.out.println("nama kota = "+namaKota[i++]);
        }
    }
}

0 komentar:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | SharePoint Demo