Assignment 1
Build a program in Java that initializes an array of 5 with temperatures in Celcius and cenvert and show them as Fahrenheit.
Build a program in Java that initializes an array of 6 with length in meters and cenvert and show them as Feet.
Build a program in Java that initializes an array of 4 with mass in Kg and cenvert and show them as pounds (lbs).
Build a program in Java that initializes an array of 5 with amount in Rupees and cenvert and show them as $.
Build a program in Java that initializes an array of 8 with time in minutes and cenvert and show them as seconds.
Assignment 2
(click here to get the Java source)
Build a program in Java that Inherits the Number class and declares two classes, Complex and Matrix and add and subtract their objects.
Assignment 3
(click here to get submissions.)
Build a program in Java that opens a text file say Myprog.java and counts its words.
Build a program in Java that opens a text file say Myprog.java and counts its lines.
Build a program in Java that opens a text file say Myprog.java and counts semi-colons in it.
Build a program in Java that opens a text file say Myprog.java and counts comment characters i.e. // or /* in it.
Build a program in Java that opens a text file say Myprog.java and searches a word in it.
Build a program in Java that opens a text file say Myprog.java and save it with another name removing its comments.
See an example java code applet.
See the Projects assigned.
|
|
Student names
Abdul Basit (New student)
Ali Nazir Khan
Arsalan Khan
Babar Shahzad
Haroon (New student)
Miss Fareeha Karim
Miss Habiba
Miss Nadia Keyani
Mashhood Zaheer
Usama
Usman Tareen
Course Layout
Overview of Java
Programming concepts
Data types, variables and arrays
Operators and Keywords
Control statements
Class
properties & Methods
Inheritance
Packages and Interfaces
Advance Programming topics
Exception Handling
Multithreaded Programming
I/O, Applet and other topics
Mini Project
The Java Library
String handling
Java.lang (Brief)
Java.util (The collection framework)
Java.io (Input and Output)
Java.net (Networking)
Java.awt (Applets and AWT)
Software development in Java
Java Beans (EJB)
Swings
Sevlets and JSP
JDBC (Database connectivity)
The Project
Books:
The Java Handbook By Patrick Naughton
Java 2.0 Complete Reference By Patrick Naughton
Java How to Program By Deitel and Deitel
|