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
pendidikan https://www.dicoding.com/ | |
seni https://www.dicoding.com/ | |
pendidikan https://www.dicoding.com/ | |
pendidikan https://www.dicoding.com/ | |
pendidikan https://www.dicoding.com/ | |
pendidikan https://www.dicoding.com/ | |
pendidikan https://www.dicoding.com/ | |
pendidikan https://www.dicoding.com/ | |
pendidikan https://www.dicoding.com/ | |
pendidikan https://www.dicoding.com/ |
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 naivebayesclassification; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileReader; | |
import java.util.ArrayList; | |
import javafx.application.Application; | |
import javafx.event.ActionEvent; | |
import javafx.event.EventHandler; | |
import javafx.geometry.Insets; |
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
import javax.swing.JPanel; | |
import javax.swing.JFrame; | |
public class WindowInformatika001 extends JFrame { | |
public static void main(String[] args) { | |
WindowInformatika001 thisClass = new WindowInformatika001(); | |
} | |
public WindowInformatika001() { |
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
import javax.swing.SwingUtilities; | |
import java.awt.BorderLayout; | |
import javax.swing.JPanel; | |
import javax.swing.JFrame; | |
public class WindowInformatika extends JFrame { | |
private JPanel jContentPane = null; | |
public static void main(String[] args) { |
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
public class LatihanClassObjectMethod004{ | |
public static void main(String[]args){ | |
LatihanClassObjectMethod003 myKotak = new LatihanClassObjectMethod003(); | |
myKotak.setPanjangLebar(8,3); | |
double luasKotak = myKotak.hitungLuas(); | |
System.out.println(luasKotak); | |
} | |
} |
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
public class LatihanClassObjectMethod003{ | |
double panjang = 12; | |
double lebar = 7; | |
void cetakPanjang(){ | |
System.out.println("Panjang Kotak: "+panjang); | |
} | |
void cetakLebar(){ | |
System.out.println("Lebar Kotak: "+lebar); |
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
class LatihanClassObjectMethod002{ | |
} |
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
public class LatihanClassObjectMethod001{ | |
} |
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
public class LatihanClassObjectMethod001{ | |
} |
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
import java.util.scanner; | |
public class LatihanArray003{ | |
public static void main(String[]amirul){ | |
Scanner sc = new Scanner(System.in); | |
System.out.print("Input Panjang Array Integer: "); | |
int p = sc.nextInt(); | |
int[] myArray; | |
myArray = new int[p]; | |
for(int k=0;k<myArray.length;k++){ | |
System.out.print("Input elemen myArray["+k+"]: "); |
NewerOlder