learn Java

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 »

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 »