Lecture30 - Java Programming, 3e Concepts and Techniques...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Java Programming, 3e Concepts and Techniques Chapter 7 Swing Interfaces with Sorting and Searching (II) ICTN 2730 Lecture 30 04/04/2008
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Assignments Read chapter 7 and lecture notes. Homework 11 is due next Wednesday. An extra bonus assignment will be posted next week. The last project (Homework 12) will be posted in Week 15.
Background image of page 2
3 Quiz 3 A for loop must always enclose its code inside braces. false Example: for (int i=7; i<=10; i++) keypad.add(keys[i]); for (int i=0; i<keys.length; i++) keys[i].addActionListener(this); If multiple statements are being repeated in the for loop, they must be enclosed inside braces.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 Quiz 3 The class header in Calc.java is "public class Calc extends Applet". Calc is the superclass of Applet. false If class A extends class B, A inherits from the superclass B and is the subclass of B. Example: public class Faculty extends Employee
Background image of page 4
5 Quiz 3 What are the valid index numbers for the array, oddNumbers, given the declaration int[] oddNumbers = {1,3,5,7,9}? 0,1,2,3,4 1,2,3,4,5 1,3,5,7,9 all odd numbers Java uses zero indexing. This question was discussed in class. Maybe it is not a bad idea to attend the class
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6 Quiz 3 Which of the following declares an array of String named fruits? String[] fruits; String Fruits[]; String fruits; new String Fruits[]; Java is case-sensitive.
Background image of page 6
7 Quiz 3 Consider the following for
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 22

Lecture30 - Java Programming, 3e Concepts and Techniques...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online