RSS

Java – Kasus 1 (soal)

17 Sep

Kopasus 
mengavakuasi warga jumlah warga 40 orang yang terdiri dari : 

20 orang ibu hamil
20 orang manula

Marinir
ketika 20 orang ibu hamil diselamatkan, masuk dan serang teroris

Infantri
kalau teroris yang terbunuh sudah 50 orang, infantri masuk dan finishing

Koding java -nya adalah :

Komando.java

package angkatan;

import sun.awt.windows.ThemeReader;

public class Kopasus {

    public static void main(String[] args) {

        boolean work = true;
        while (work) {
            Thread back = new Thread();
            Thread komando = new Thread();

Bersambung!!!

http://maarifrochman.blogspot.com/2013_08_01_archive.html

 
Leave a comment

Posted by on September 17, 2013 in Uncategorized

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: