class AwalAkhirString{
public static void main(String[] args) {
String str1 = "Sekolah Tinggi Manajemen Informatika dan Teknik Komputer";
System.out.println(str1.startsWith("Sekolah"));
System.out.println(str1.endsWith("Komputer"));
System.out.println(str1.startsWith("Sek",1));
System.out.println(str1.startsWith("lmu",2));
System.out.println(str1.startsWith("lmu",3));
System.out.println(str1.startsWith("Komp",7));
System.out.println(str1.startsWith("Komp",6));
System.out.println(str1.startsWith("Komp",5));
System.out.println(str1.endsWith("KOmputer"));
System.out.println(str1.startsWith("Mada"));
}
}
Tuesday, 16 February 2010
Subscribe to:
Post Comments (Atom)
gan ada contoh program persediaan barang g??
ReplyDeleteyg prosess one to many.. ( Maksud saya 1 no faktur bisa menerima banyak barang). saya blum bnljar yg kayak gni gan tol ya.. buat tugas akhir ne... Please Help me....