Wah, udah dapat tugas pertama aja nih di matakuliah pemrograman berorientasi objek atau JAVA.
Dosennya, Bu Rani, menugaskan kami sekelas untuk menampilkan nama dan stambuk dengan menggunakan command prompt alias CMD. yeap, a little bit difficult for the begining... but, not really as long as i want to learn it seriously...
here my first task of Java... :)
Listing code :
package tugasD1;
public class nim092333 {
public static void main (String[] args) {
System.out.println("Nim : 092333");
System.out.println("Nama: Hasti Suci Syavitri");
}
}
outputnya :
untuk soal yang kedua, listing codenya :
public class hasti092333 {
public static void main(String[] args) {
String[] stb={"0","9","2","3","3","3"};
for (int a=0; a<5;a++) {
System.out.println(stb[a]); } } }
Outputnya :
0 komentar:
Posting Komentar