Created
March 28, 2014 02:42
-
-
Save old-repo-ekoteguh/9824130 to your computer and use it in GitHub Desktop.
Here is simple example of using conditional If in Java programming.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package com.dekteguh.percabangan; | |
/** | |
* | |
* @author Eko Teguh Widodo | |
*/ | |
public class PercabanganIf { | |
public static void main(String[] args) { | |
int i=100; | |
//contoh percabangan if | |
if(i==100){ | |
System.out.println("i bernilai 100"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment