Showing posts with the label Java LABORATORY MANUALShow all
To write a java program to display the table using JTable component. Suppose that a table named Table.txt is stored in a text file. The first line in the file is the header, and the remaining lines correspond to rows in the table. The elements are separated by commas.
 To Write a Java program to create an abstract class named Shape that contains an empty method named number Of Sides ( ).Provide three classes named Trapezoid, Triangle and Hexagon such that each one of the classes extends the class Shape. Each one of the classes contains only the method number Of Sides ( ) that shows the number of sides in the given geometrical figures.
To write a java program that allows the user to draw lines, rectangles and ovals.
To write a java program that simulates a traffic light. The program lets the user select one of three lights: red, yellow or green. When a radio button is selected, the light is turned on and only one light can be on at a time. No light is on when the program starts.
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 displays the result on the console.
 To write a program that creates a user interface to perform integer divisions. The user enters two numbers in the textfields,Num1 and Num2.The division of Num1 and Num2 is displayed in the Result field when the Divide button is clicked. If Num1 or Num2 were not an integer, the program would throw a Number Format Exception. If Num2 were Zero, the program would throw an Arithmetic Exception Display the exception in a message dialog box.
To write a java program that correctly implements Producer consumer problem using the concept of inter thread communication.
To write a java program that creates three threads. First thread displays “Good Morning” every one second, the second thread displays “Hello” every two seconds and the third thread displays “Welcome” every three seconds.
To write a java program for handling mouse events.
To write a java program that works as a simple calculator. Use a grid layout to arrangebuttons for the digits +,-,*,/,% operations. Add a text field to display the result.
To develop an applet that displays a simple message
 To develop an applet that receives an integer in one text field, and computes as factorial value and returns it in another text field, when the button named “Compute” is clicked.
To write a java program that converts infix expression into postfix expression.
To write a java program that implements stack ADT using an array.
To write a java program that displays the number of characters, lines and words in a text file.
To write a java program that reads a file and displays the file on the screen, with a line number before each line.
To write a java program that reads a file name from the user then displays information about whether the file exists, whether the file is readable, whether the file is writable, type of file and the length of the file in bytes.
To write a java program that makes frequency count of letters in a given text.
To write a java program to sort a list of names in ascending order.
To write a java program that checks whether a given string is a palindrome or not.