/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package mysql;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class CobaSQL {
private static Connection conn;
public static void main(String[] args) {
try {
conn = DriverManager.getConnection(“jdbc:mysql://localhost/db_kursus?user=root&password=”);
System.out.println(“Driver ditemukan. Koneksi berhasil!!!”);
} catch (SQLException ex) {
// handle any errors
System.out.println(“SQLException: ” + ex.getMessage());
System.out.println(“SQLState: ” + ex.getSQLState());
System.out.println(“VendorError: ” + ex.getErrorCode());
}
}
}
-7.287243
112.739048
In this tutorial, we will extend our basic client/server address application II using sockets. This tutorial assumes that you have read and completed the following tutorials.
Download : http://www.ziddu.com/download/7984176/bdcs.zip.html
Source : http://www.sumtotalz.com/TotalAppsWorks/BasicClient_Server_III_DL.html
-7.287243
112.739048
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package TugasModule5;
/**
*
* @author Arin
*/
public class BukuAlamat {
public static void main(String[] args) {
String[][] entry = {{“Florence”, “735-1234″, “Manila”},
{“Joyce”, “983-3333″, “Quezon City”},
{“Becca”, “456-3322″, “Manila”}};
int x = 0;
for (x = 0; x < 3; x++) {
System.out.println("Name : " + entry[x][0]);
System.out.println("Tel. # : " + entry[x][1]);
System.out.println("Address : " + entry[x][2]);
System.out.println("");
}
}
}
Download Source Code : http://www.ziddu.com/download/7961146/BukuAlamat.zip.html
-7.287243
112.739048
Recent Comments