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
package pertemuan3; | |
public class OperatorPembanding { | |
public static void main(String[] args) { | |
int nilaiA = 12; | |
int nilaiB = 4; | |
boolean hasil; | |
// apakah A lebih besar dari B? |
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
package pertemuan3; | |
public class OperatorBitwise { | |
public static void main(String[] args) { | |
int a = 60; /* 60 = 0011 1100 */ | |
int b = 13; /* 13 = 0000 1101 */ | |
int c = 0; | |
c = a & b; /* 12 = 0000 1100 */ |
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
package pertemuan5; | |
import javax.swing.JOptionPane; | |
public class GradeNilai { | |
public static void main(String[] args) { | |
int nilaiHarian, nilaiUts, nilaiUas; | |
double nilaiAkhir; | |
String grade; |
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
package pertemuan6; | |
import javax.swing.JOptionPane; | |
public class Kasir { | |
public static void main(String[] args) { | |
// deklarasi | |
int belanjaan, diskon, bayar; | |
String kartu; |
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
<!-- twitter card start --> | |
{block:PermalinkPage} | |
<meta name="twitter:url" content="{Permalink}"/> | |
<meta name="twitter:site" content="@ardiantapargo"> | |
<meta name="twitter:creator" content="@ardiantapargo"> | |
{block:Posts} | |
{block:Text} | |
<meta name="twitter:card" content="summary"> |
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
<!-- Open Graph tags for your home page (index). --> | |
<meta property="og:site_name" content="{Title}" /> | |
<meta property="fb:app_id" content="FACEBOOK_APPID"/> | |
<meta property="fb:admins" content="FACEBOOK_USERID" /> | |
<meta property="og:description" content="{MetaDescription}" /> | |
<meta property="og:locale" content="en_US" /> | |
{block:IndexPage} | |
<meta property="og:image" content="{PortraitURL-128}" /> | |
<meta property="og:title" content="{Title}" /> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hello Bootstrap</title> | |
<!-- menyisipkan bootstrap --> | |
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" /> | |
</head> |
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
[PHP] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
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
package pertemuan7; | |
import javax.swing.JOptionPane; | |
/** | |
* | |
* @author petanikode | |
*/ | |
public class KalkulatorSederhana { | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Kode PHP dalam File HTML</title> | |
</head> | |
<body> | |
<p>Ini kode HTML, dan dibawah ini:</p> | |
<p><?php echo "Kode PHP"; ?></p> | |
</body> | |
</html> |