Java Database

Submitted by: 
Visitors have accessed this post 9897 times.

Hello guys. This is a simple Java program to connect it on a database(acess..ODBC).
I wrote this during our midterm exam in my java class.
I hope u like it, u can modify it if you want! =)

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.


natry ko na yung porgram mo..i really appreciated it..gawa ka ng same program,,pero using AWT/Swing naman para mas maapreciate pa..thanks..

senxa paps.. busy ako masyado heheh convert mo nalang yan at saka sa visual studio nako fucos .net tau :) peu pag meh tyme ako cge gawan kita javax.swing na database program :)

boss pahelp nga sa pagconnect ng database sa JAVA?,access yung database..
yung step by step.

download mo ung codes co my nakalagay dun na read me..
basahin mo un may steps don..

eto nga =)
wahhh parehas tayo 3rdyear heheh peru sa java 2ndyear ako non

depende kung anong OS gamit mo basata sa control panel tayo=)


1.control panel (switch to classic)
2. select the administrative tools data sources(ODBC)

4. under the user DSN tab click the (add button)
5. select driver [microsoft access driver(*.mdb)]
click finish
6. under the database grupbox click "select" and look for your database click OK then CREATE.

thats it=) sana nakatolong =)

anung year ka na bossing?

present 3rd year boss! =) kaw

present 3rd year boss! =) kaw

3rd year din bossing..

try to use methods in every transactions to make it simple. =)

sir suspect

actually sir yes u can make metnods in every transaction to make the code clearer

somethng like this.....

/* This Java program will print out a series of lines of text.
The class Two has a main method (where the execution will start)
and several other methods, some of which are called */

public class Two {

public static void beginner() {
System.out.println("This is my starter");
System.out.println("Still in my starter");

public static void main(String[] args) { // Starts execution here
System.out.println("A program to exercise the Java tools");
System.out.println("Message from main");

public static void noway() { // No calls to this one
System.out.println("This will not happen");

public static void another() {
System.out.println("I am here"); }

=) but it was so simple even a new programmer in java can undrstand it =)
anyways, that was my pastime code when i was at first year =) salamat sa suggestion... modify mo kung gusto moh =)

its so simple =) methods? dont think so! no need =) hehe

thank you shaik =) hope u like it

Hi . I'm shaik from chennai. I saw your program really good.

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • You may insert videos with [video:URL]
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <th> <img> <h1> <h2> <h3> <iframe> [video]
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <asp>, <c>, <cpp>, <csharp>, <css>, <html4strict>, <java>, <javascript>, <mysql>, <php>, <python>, <sql>, <vb>, <vbnet>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.