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
server { | |
charset utf-8; | |
client_max_body_size 128M; | |
server_name arsip.bpn.localhost; | |
root www/symfony/arsip-tanah/public; | |
index index.php; | |
listen 8000; ## listen for ipv4 | |
#listen [::]:80 default_server ipv6only=on; ## listen for ipv6 |
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
@echo off | |
:: Konfigurasi | |
SET PHP_HOME=php-7.3.1-nts-Win32-VC15-x64 | |
SET MYSQL_HOME=mysql-8.0.14-winx64 | |
SET NGINX_HOME=nginx-1.15.8 | |
if exist "%~dp0temp" ( | |
echo Menghapus Temporary files... | |
del /F/S/Q "%~dp0temp\" > nul |
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 OcaJavaSe7Soal001 { | |
public static void main(String[] args) { | |
int[][] data = { | |
{1,0,2}, | |
{2,1,0}, | |
{0,2,1} | |
}; | |
System.out.printf( | |
"%d %B %d", |
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 OcaJavaSe7 { | |
public static void main(String[] args) { | |
String valid = "true"; | |
if(valid) | |
System.out.println("valid"); | |
else | |
System.out.printf("invalid"); | |
} |
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.io.ByteArrayInputStream; | |
public class ByteStream { | |
public static void main(String[] args) { | |
// Contoh input dari String | |
String teks = "ABC"; | |
// Buat input stream | |
ByteArrayInputStream input = new ByteArrayInputStream(teks.getBytes()); |
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.io.IOException; | |
import java.io.FileReader; | |
public class CharacterStream { | |
public static void main(String[] args) { | |
// Contoh input dari File | |
String file = "hello.txt"; | |
try { |
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 JavaLang extends ProgrammingLang { | |
public void compileAndRun() { | |
System.out.println(JavaLang.class.getName()); | |
System.out.println("Compiling..."); | |
System.out.println("Running..."); | |
} | |
} |
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.io.*; | |
public class ByteStreamVsCharStream { | |
public static void main(String[] args) { | |
// Input source | |
String souce = "Affandes"; | |
// Create Byte Stream and Character Stream | |
ByteArrayInputStream inputByte = new ByteArrayInputStream(souce.getBytes()); |
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.io.*; | |
import java.util.Arrays; | |
public class ByteStreamVsCharStream { | |
public static void main(String[] args) { | |
// Create source | |
String source = "Affandes"; | |
// Create Byte Stream & Character Stream |
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 HitungIpk { | |
public static void main(String[] args) { | |
Nilai daftarNilai[] = { | |
new Nilai(NilaiHuruf.A, 3), | |
new Nilai(NilaiHuruf.B, 3), | |
new Nilai(NilaiHuruf.A, 2), | |
new Nilai(NilaiHuruf.B, 2), | |
}; | |
double totalNilai = 0; |
OlderNewer