Boolean

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

package program;

/**
 *
 * @author Administrator
 */
public class BilBoolean166 {
    public static void main(String[] args) {
        boolean status;
        boolean kondisi;
        int bil1=10;
        int bil2=20;

        kondisi = bil1 > bil2;
        status = false;

        System.out.println("bil1 = "+bil1);
        System.out.println("bil2 = "+bil2);
        System.out.println("kondisi bil1 > bil2 adalah "+status);
    }
}

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