Java Algorithm

Write a java program establish a JDBC connection

Write a java program establish a JDBC connection Week   12 Aim: To  Write a java program establish a JDBC connection, create a table student with properties name, register number, mark1,mark2, mark3. Insert the values into the table by using the java. Description: Java Database Connectivity (JDBC) is an application program interface (API) specification for connecting …

Write a java program establish a JDBC connection Read More »

Write a Java program that implements a simple client server application

Write a Java program that implements a simple client server application Week  11 Aim: To Write a Java program that implements a simple client/server application . The client sends data to a server. The server receives the data, uses it to produce a result, and then sends the result back to the client. The client …

Write a Java program that implements a simple client server application Read More »

Write a program that creates a user interface to perform integer divisions

Write a program that creates a user interface to perform integer divisions Week 10 Aim: To Write a program that creates a user interface to perform integer divisions. The user enters two numbers in the JtextFields, Num1 and Num2. The division of Num1 and Num2 is displayed in the Result field when the Divide button …

Write a program that creates a user interface to perform integer divisions Read More »

Java program to design simple calculator with the use of gridlayout

Java program to design simple calculator with the use of gridlayout Week  9 a Aim: To Write a Java program that works as a simple calculator. Use a grid layout to arrange buttons for the digits and for the +, -,*, % operations. Add a text field to display the result. Source Code: import java.util.*; …

Java program to design simple calculator with the use of gridlayout Read More »

Find the area of triangle and rectangle in java

Find the area of triangle and rectangle in java Week 6 a)Aim: To Write java program to create a super class called Figure that receives the dimensions of two dimensional objects. It also defines a method called area that computes the area of an object. The program derives two subclasses from Figure. The first is …

Find the area of triangle and rectangle in java Read More »

How to compare dates in java algorithm with source code

How to compare dates in java algorithm with source code 5-c) Write a java program to read the time intervals (HH:MM) and to compare system time if the system time between your time intervals print correct time and exit else try again to repute the same thing. By using String Tokenizer class. Description: Intially take …

How to compare dates in java algorithm with source code Read More »

find unique elements in array java | algorithm and source code

find unique elements in array java week – 5 b) Write java program that inputs 5 numbers, each between 10 and 100 inclusive. As each number is read display it only if it‘s not a duplicate of any number already read display the complete set of unique values input after the user enters each new …

find unique elements in array java | algorithm and source code Read More »

Java roll dice 10000 times with algorithm and source code

Java roll dice 10000 times with algorithm and source code Week 5 a)Aim: To Write a java program to make rolling a pair of dice 10,000 times and counts the number of times doubles of are rolled for each different pair of doubles. Hint: Math.random() Description : For this program, no inputs are required. The …

Java roll dice 10000 times with algorithm and source code Read More »