java

Traffic Light using Applet in Java | algorithm and source code

Traffic Light using Applet in Java | algorithm and source code Traffic signal automation using java. Aim: To design Traffic Light using Applet in Java Procedure for Traffic Light Design: To design the TLD se the packages by importing it from  java. applet,  awt,  awt. Event Use Applet implements ItemListener, init() create the CheckboxGroup() and …

Traffic Light using Applet in Java | algorithm and source code Read More »

Currency converter using java

Currency converter using java. Aim: To design Currency converter using java. Procedure for conversion: getCurrency() : java.util.Currency.getCurrency() method returns ISO 4217 currency code of the passed currency argument. getInstance() : java.util.Currency.getInstance() method creates currency instance for Currency code. getDefaultFractionDigits() : java.util.Currency.getDefaultFractionDigits() method returns default number of argumented currency fraction digits. getDisplayName() : java.util.Currency.getDisplayName() method generates …

Currency converter using java Read More »

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 »