java tutorial for beginners

Invoice No Generating using Java and Mysql

This tutorial will teach you how to generating Auto Invoice No using Java and Mysql.this example will important for developing the inventory management system project. FirstStep  : we have to establish the database connection Connection con; PreparedStatement pst; public void Connect() { try { Class.forName(“com.mysql.jdbc.Driver”); con = DriverManager.getConnection(“jdbc:mysql://localhost/mcafe”, “root”, “”); } catch (ClassNotFoundException ex) { […]

Invoice No Generating using Java and Mysql Read More »

Java Mysql simple project in Eclipse

This JDBC will teach you how to do the search in Eclipse using Mysql Database. First Step :  Establish the database connection in order to connect java and mysql. i attached the code below. Connection con; PreparedStatement pst; public void Connect() { try { Class.forName(“com.mysql.jdbc.Driver”); con = DriverManager.getConnection(“jdbc:mysql://localhost/bill”, “root”,””); } catch (ClassNotFoundException ex) { ex.printStackTrace();

Java Mysql simple project in Eclipse Read More »

Month Find Example using Java

This tutorial will teach you how to make Month Find Example using Java. Paste the code inside the find button int mnum; mnum = Integer.parseInt(txtmnumber.getText()); switch (mnum) { case 1: txtmonth.setText(“January”); break; case 2: txtmonth.setText(“February”); break; case 3: txtmonth.setText(“March”); break; case 4: txtmonth.setText(“April”); break; case 5: txtmonth.setText(“May”); break; case 6: txtmonth.setText(“June”); break; case 7: txtmonth.setText(“July”);

Month Find Example using Java Read More »

Calculating manpower project using java

This tutorial will teach you how to alculating manpower project using java. Paste the code inside the Cal Button double projectdays,projecthours,works,tot; projectdays = Double.parseDouble(txtdays.getText()); projecthours = Double.parseDouble(txthours.getText()); projectdays = Double.parseDouble(txtemp.getText()); tot = projectdays * projecthours * projectdays; txttot.setText(String.valueOf(tot)); Paste the code inside the Exit Button System.exit(0);  

Calculating manpower project using java Read More »