Java

CRUD Operations in Java using JDBC and MySQL (With Code Examples)

If you are looking for how to develop a Java application that connects with a MySQL database and performs basic operations such as Create, Read, Update, and Delete, then you are in the right place. Here you will learn Java Database Connectivity (JDBC) step by step with examples. We will be using JDBC, Java, and MySQL, which are very popular for use in Java mini projects. What is CRUD? CRUD stands for Create, Read, Update, and Delete. These four actions are

CRUD Operations in Java using JDBC and MySQL (With Code Examples) Read More »

Record Navigation using Java Mysql Examples

This tutorial will teach you how to make Record Navigation using Java Mysql. First we have to Connect to  Database create the method connect() public void connect() { try { Class.forName(“com.mysql.jdbc.Driver”); con = DriverManager.getConnection(“jdbc:mysql://localhost/apocompany”,”root”,””); stat = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY); rs = stat.executeQuery(“select id,custname,loantype,amount from loan”); } catch (ClassNotFoundException ex) { ex.printStackTrace(); } catch (SQLException ex) { ex.printStackTrace();

Record Navigation using Java Mysql Examples 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 »

JCombo box Search using Java mysql

This tutorial will teach you how to search records using JComboBox Java and Mysql. we will teach step by step. First we have to load the JComboBox following code will help you to load the Jcombobox private void employeeID() { try { Class.forName(“com.mysql.jdbc.Driver”); con = DriverManager.getConnection(“jdbc:mysql://localhost/melwa”,”root”,””); pst = con.prepareStatement(“select * from employee”); ResultSet rs =

JCombo box Search using Java mysql Read More »

URL Test using Java network programming

This tutorial will teach you how to test Url.defined in the URL class to retrieve information about the URL. public class URLTest { public static void main(String[] args) { URL obj; try { obj = new URL(“https://www.tutussfunny.com”); System.out.println(“Protocal : ” + obj.getProtocol() ); System.out.println(“host : ” + obj.getHost() ); System.out.println(“Port : ” + obj.getPort()); }

URL Test using Java network programming Read More »