Last active
August 29, 2015 14:20
-
-
Save agusmakmun/a22db6e9a879f03545f8 to your computer and use it in GitHub Desktop.
Ini adalah script untuk pemanggilan output CekUser()
This file contains hidden or 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
/* | |
Ini adalah script untuk pemanggilan output CekUser(). | |
Lihat soalnya : https://gist.github.com/agusmakmun/3255042298910fd3f2c5 | |
Lihat class utamanya : https://gist.github.com/agusmakmun/7ecaaf3b0caf799a1905 | |
@author Summon Agus | |
@blog bloggersmart.net | |
*/ | |
public class PanggilCekUser { | |
public static void main(String[] args) { | |
CekUser cek = new CekUser("Admin", "Admin"); | |
cek.apakahAdmin(); | |
CekUser cek1 = new CekUser("Summon", "Agus", null, null); | |
cek1.apakahAdmin(); | |
} | |
} | |
// Result of Output | |
Salah, Anda Bukan Admin | |
id = Summon; password = Agus; ----> Benar, Selamat Datang Admin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment