![]() |
Internet Programming - Java - Fall 2005 |
|
| Home | Syllabus | Tutorials | Resources | Code | Contact | ||
Home
Monday, October 31st, 2005
Solve the following problems in the Lab session
1. Design a class called Queue with the following members and methods class Queue { private data[]; public Queue(int maxSize){ .. } public boolean isEmpty(){ .. } public boolean isFull(){ } public void enqueue(int num){ .. } public int dequeue(){ .. } } 2. Design a class called Point with members x and y of type integer. Write 2 constructors, and a method called distance which takes an another Point as a parameter. 3. Write a function to calculate factorial of a given number 4. Create a Frame for a Login screen. It should have 2 text fields, 2 labels (username and password) and 2 buttons(login and exit). 5. Design and code the layout for the following picture![]()
Monday, October 24th, 2005
Click here for sample midterm questions . The solutions will be posted in the code section
. For examples not on the website, go to http://www.zolic.com/javaMonday, October 10th, 2005
Today's Topics
- Layout Examples
- Simple Click event handling
- Complete GUI programs
Monday, October 3rd, 2005
I added a resources page where you could find the JDK documentation. Also check out the examples you could try out in the Code section.
Topics from today's Lab Session
- Basics of Windows Programming
- Containers and Components
- Basic Layouts
©Copyright
2009 Gavi Narra |