Java

IP address Find in Java || Java Network Programming

This tutorial will teach you  Java Networking programming step step.first we look at the concept of Ip address.let we see how to find Ip Address of the machine. Paste this Code inside the Find Button.this code use to identify the Ip Address of the Machine try { InetAddress address = InetAddress.getLocalHost(); String addressHost = address.getHostAddress(); […]

IP address Find in Java || Java Network Programming Read More »

Sales Tax Calculation Java

This tutorial will teach you Sales Tax Calculation Java. paste this code inside the ok button double taxprice = Integer.parseInt(txttprice.getText()); double trate = Integer.parseInt(txttrate.getText()); double tot = trate/100 * taxprice + taxprice; txtatp.setText(String.valueOf(tot)); i have attached the video link below. which will do this tutorials step by step.  

Sales Tax Calculation Java Read More »

Java JDBC Search using Mysql Database

This tutorial will teach you Jdbc Search step by step. Establish the database connection Connection con; PreparedStatement pst; public void Connect() { try { Class.forName(“com.mysql.jdbc.Driver”); con = DriverManager.getConnection(“jdbc:mysql://localhost/studcrud”,”root”,””); } catch (ClassNotFoundException ex) { } catch (SQLException ex) { } The System Shall be able to search the record by entering the  relavent student id.paste the

Java JDBC Search using Mysql Database Read More »

Add two numbers using Java

This tutorial will teach you Input two numbers to calculate and display the total.   paste the code inside the + button int Num1 = Integer.parseInt(txtNum1.getText()); int Num2 = Integer.parseInt(txtNum2.getText()); int tot = Num1 + Num2; txtTotal.setText(String.valueOf(tot)); paste the code inside the – button int Num1 = Integer.parseInt(txtNum1.getText()); int Num2 = Integer.parseInt(txtNum2.getText()); int tot =

Add two numbers using Java Read More »

Student MarksCalculation System Using Java

This tutorial will teach you Student MarksCalculation System Using Java.Input the studentname and marks to calculating the total,grade. the grade is awared as “Pass” when the average is more than 50.otherwise grade is fail. paste the code inside the ok button int num1,num2,num3,tot,avg; num1 = Integer.parseInt(txtnum1.getText()); num2 = Integer.parseInt(txtnum2.getText()); num3 = Integer.parseInt(txtnum3.getText()); tot = num1

Student MarksCalculation System Using Java Read More »

Advance Bus Ticket Booking System in Java Mysql

This tutorial will teach you Advanced Bus Booking System step by step.This system will use to manage the Bus Booking System. The System shall be able to select the seat no which customer wants. Step 1: implement  MouseListener  public class pos extends javax.swing.JFrame implements MouseListener { Step 2:  set the addMouseListener(this) in to each label.  write

Advance Bus Ticket Booking System in Java Mysql Read More »