JNTUH CSE-AIML CS408PC: JAVA PROGRAMMING LAB LAB

JNTUH CSE-AIML CS408PC: JAVA PROGRAMMING LAB LAB

Course Objectives:
 To write programs using abstract classes.
 To write programs for solving real world problems using java collection frame work.
 To write multithreaded programs.
 To write GUI programs using swing controls in Java.
 To introduce java compiler and eclipse platform.
 To impart hands on experience with java programming.
Course Outcomes:
 Able to write programs for solving real world problems using java collection frame work.
 Able to write programs using abstract classes.
 Able to write multithreaded programs.
 Able to write GUI programs using swing controls in Java.
Note:
1. Use LINUX and MySQL for the Lab Experiments. Though not mandatory, encourage the use of Eclipse platform.
2. The list suggests the minimum program set. Hence, the concerned staff is requested to add more problems to the list as needed.
List of Experiments:
1. Use Eclipse or Net bean platform and acquaint with the various menus. Create a test project, add a test class, and run it. See how you can use auto suggestions, auto fill. Try code formatter and code refactoring like renaming variables, methods, and classes. Try debug step by step with a small program of about 10 to 15 lines which contains at least one if else condition and a for loop.
2. 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. Handle any possible exceptions like divided by zero.
3. a) Develop an applet in Java that displays a simple message.
b) Develop an applet in Java that receives an integer in one text field, and computes its factorial Value and returns it in another text field, when the button named “Compute” is clicked.
4. Write a Java program that creates a user interface to perform integer divisions. The user enters two numbers in the text fields, Num1 and Num2. The division of Num1 and Num 2 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.
5. Write a Java program that implements a multi-thread application that has three threads. First thread generates random integer every 1 second and if the value is even, second thread computes the square of the number and prints. If the value is odd, the third thread will print the value of cube of the number.
6. Write a Java program for the following:
Create a doubly linked list of elements. Delete a given element from the above list Display the contents of the list after deletion.
7. Write a Java program that simulates a traffic light. The program lets the user select one of three lights: red, yellow, or green with radio buttons. On selecting a button, an appropriate message with “Stop” or “Ready” or “Go” should appear above the buttons in selected color. Initially, there is no message shown.
8. Write a Java program to create an abstract class named Shape that contains two integers and an empty method named print Area (). Provide three classes named Rectangle, Triangle, and Circle such that each one of the classes extends the class Shape. Each one of the classes contains only the method print Area () that prints the area of the given shape.
9. 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. Write a java program to display the table using Labels in Grid Layout. 10. Write a Java program that handles all mouse events and shows the event name at the center of the window when a mouse event is fired (Use Adapter classes).
11. Write a Java program that loads names and phone numbers from a text file where the data is organized as one line per record and each field in a record are separated by a tab (\t). It takes a name or phone number as input and prints the corresponding other value from the hash table (hint: use hash tables).
12. Write a Java program that correctly implements the producer – consumer problem using the concept of interthread communication.
13. Write a Java program to list all the files in a directory including the files present in all its
subdirectories.
14. Write a Java program that implements Quick sort algorithm for sorting a list of names in
ascending order
15. Write a Java program that implements Bubble sort algorithm for sorting in descending order and
also shows the number of interchanges occurred for the given set of integers.
REFERENCE BOOKS
1. Java for Programmers, P. J. Deitel and H. M. Deitel, 10th Edition Pearson education.
2. Thinking in Java, Bruce Eckel, Pearson Education.
3. Java Programming, D. S. Malik and P. S. Nair, Cengage Learning.
4. Core Java, Volume 1, 9th edition, Cay S. Horstmann and G Cornell, Pearson.

CSE-AIML

SEMESTER SUBJECT CODE SUBJECT Lession Plan Lecturer Notes & Question Bank SYLLABUS ABOUT TUTOR
I MA101BS Mathematics – I Click Here
I AP102BS Applied Physics Click Here
I CS103ES Programming for Problem Solving Click Here
I ME104ES Engineering Graphics Click Here
I AP105BS Applied Physics Lab Click Here
I CS106ES Programming for Problem Solving Lab Click Here
I MC109ES Environmental Science Click Here
II MA201BS Mathematics – II Click Here
II CH202BS Chemistry Click Here
II EE203ES Basic Electrical Engineering Click Here
II ME205ES Engineering Workshop Click Here
II EN205HS English Click Here
II CH206BS Engineering Chemistry Lab Click Here
II EN207HS English Language and Communication Skills Lab Click Here
II EE208ES Basic Electrical Engineering Lab Click Here
II-I CS310PC Discrete Mathematics Click Here
II-I CS302PC Data Structures Click Here
II-I MA313BS Mathematical and Statistical Foundations Click Here
II-I CS304PC Computer Organization and Architecture Click Here
II-I CS311PC Python Programming Click Here
II-I SM306MS Business Economics & Financial Analysis Click Here
II-I CS307PC Data Structures Lab Click Here
II-I CS312PC Python Programming Lab Click Here
II-I MC309 Gender Sensitization Lab Click Here
II-II CS416PC Formal Language and Automata Theory Click Here
II-II CS417PC Software Engineering Click Here
II-II CS403PC Operating Systems Click Here
II-II CS404PC Database Management Systems Click Here
II-II CS412PC Object Oriented Programming using Java Click Here
II-II CS406PC Operating Systems Lab Click Here
II-II CS407PC Database Management Systems Lab Click Here
II-II CS408PC Java Programming Lab Click Here
II-II MC409 Constitution of India Click Here
III-I Design and Analysis of Algorithms Click Here
III-I Machine Learning Click Here
III-I Computer Networks Click Here
III-I Compiler Design Click Here
III-I Graph Theory (PE1) Click Here
III-I Introduction to Data Science(PE1) Click Here
III-I Web Programming(PE1) Click Here
III-I Image Processing(PE1) Click Here
III-I Computer Graphics(PE1) Click Here
III-I Software Testing Methodologies(PE2) Click Here
III-I Information Retrieval Systems(PE2) VIJAYANAND S
III-I Pattern Recognition(PE2) Click Here
III-I Computer Vision and Robotics(PE2) Click Here Click Here
III-I Data Warehousing and Business Intelligence(PE2) Click Here
III-I Machine Learning Lab Click Here
III-I Computer Networks Lab Click Here
III-I Advanced Communication Skills Lab Click Here
III-I Intellectual Property Rights Click Here
III-II Artificial Intelligence Click Here Click Here
III-II DevOps Click Here Click Here
III-II Natural Language Processing Click Here Click Here
III-II Internet of Things(PE3) Click Here Click Here
III-II Data Mining(PE3) Click Here Click Here
III-II Scripting Languages(PE3) Click Here Click Here
III-II Mobile Application Development(PE3) Click Here Click Here
III-II Cryptography and Network Security(PE3) Click Here Click Here
III-II Artificial Intelligence and Natural Language Processing Lab Click Here Click Here
III-II DevOps Lab Click Here Click Here
IV-I Neural Networks & Deep Learning Click Here Click Here
IV-I Reinforcement Learning Click Here Click Here
IV-I Quantum Computing(PE4) Click Here Click Here
IV-I Expert Systems(PE4) Click Here Click Here
IV-I Cloud Computing(PE4) Click Here Click Here
IV-I Game Theory(PE4) Click Here Click Here
IV-I Mobile Computing(PE4) Click Here Click Here
IV-I Expert Systems(PE4) Click Here Click Here
IV-I Cloud Computing(PE4) Click Here Click Here
IV-I Game Theory(PE4) Click Here Click Here
IV-I Mobile Computing(PE4) Click Here Click Here
IV-I Social Network Analysis(PE5) Click Here Click Here
IV-I Federated Machine Learning(PE5) Click Here Click Here
IV-I Augmented Reality & Virtual Reality(PE5) Click Here Click Here
IV-I Web Security(PE5) Click Here Click Here
IV-I Ad-hoc & Sensor Networks Click Here Click Here
IV-I Deep Learning Lab Click Here Click Here
IV-II Organizational Behaviour Click Here Click Here
IV-II Speech and Video Processing(PE6) Click Here Click Here
IV-II Robotics Process Automation(PE6) Click Here Click Here
IV-II Randomized Algorithms(PE6) Click Here Click Here
IV-II Cognitive Computing(PE6) Click Here Click Here
IV-II Semantic Web(PE6) Click Here Click Here

Add Comment

Your email address will not be published. Required fields are marked *

Style switcher RESET
Body styles
Color settings
Link color
Menu color
User color
Background pattern
Background image