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
| package ujikom2; | |
| import java.sql.SQLException; | |
| import java.util.Scanner; | |
| public class Ujikom2 { | |
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
| package ujikom2; | |
| import java.sql.*; | |
| public class Crud { | |
| Connection conn; | |
| Statement stmt; | |
| ResultSet rs; | |
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
| package ujikom2; | |
| import java.sql.*; | |
| public class Crud { | |
| Connection conn; | |
| Statement stmt; | |
| ResultSet rs; | |
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
| package ujikom; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import javax.swing.JOptionPane; | |
| public class UjiKom { | |
| public static void main(String[] args) { |
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
| package ujikom; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| public class UjiKom { | |
| public static void main(String[] args) { | |
| // TODO code application logic here |
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
| @extends('siswa.layout') | |
| @section('content') | |
| <div class="row"> | |
| <div class="col-lg-12 margin-tb"> | |
| <div> | |
| <h2>Add New Student</h2> | |
| </div> | |
| <div> | |
| <a class="btn btn-primary" href="{{ route('siswa.index') }}"> Back</a> |
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
| private String formattingCurrency(int number){ | |
| NumberFormat currencyUK = NumberFormat.getCurrencyInstance(Locale.UK); | |
| String numberString = currencyUK.format(number).replace("£", "Rp."); | |
| return numberString; | |
| } |
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
| String[] data = null; | |
| int hasil = 0; | |
| if (cbxMenu.getSelectedItem().toString().equals("Kenangan Manis") | |
| || cbxMenu.getSelectedItem().toString().equals("Kenangan Pahit")) { | |
| data = new String[]{cbxMenu.getSelectedItem().toString(), "35000"}; | |
| } else { | |
| data = new String[]{cbxMenu.getSelectedItem().toString(), "25000"}; | |
| } |
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
| private void browseSong() { | |
| // untuk memilih file dalam folder | |
| JFileChooser openFileChooser = new JFileChooser(currentDirectory); | |
| int result = openFileChooser.showOpenDialog(null); | |
| if (result == JFileChooser.APPROVE_OPTION) { | |
| songFile = openFileChooser.getSelectedFile(); | |
| player.addToPlayList(songFile); | |
| player.skipForward(); |
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
| package com.mycompany.belajarjava6; | |
| import java.io.File; | |
| import java.io.FileNotFoundException; | |
| import java.util.Scanner; | |
| public class ReadFile { | |
| public static void main(String[] args) { | |
| try { |