Compulsory Courses

Java Programming Lab

Source:国际学院 Date:2020-12-02 Hits:45

Course Objectives & Requirements:

Upon successful completion of this course, students should be able to:

1. Construct a basic Java program using Sun’s Java Development Toolkit (JDK).

Students will be able to create a Java program using a simple text editor. Students can compile programs through a command prompt window creating Java bytecode using Sun’s JDK. Programs can be debugged using errors displayed in the command prompt window.

2. Use basic programming fundamentals such as variables, constants, selection statements, loops, methods and arrays.

Students will be able to effectively utilize variables, constants, if statements, switch statements, conditional expressions, loops and nested loops, logical operators, relational operators, arithmetic operators, arrays, and methods. Students will be able to validate input and format output.

3. Use basic object-oriented programming concepts.

Students will be able to utilize predefined classes to create objects as necessary. Students will be able to define classes with properties, constructors, and methods and use those classes to instantiate objects.

4. Develop an algorithm to solve a given problem and translate it into a working Java program.

Students will be able to develop an algorithm to solve a given problem. Students can translate the algorithm into a working Java program using recommended programming style and techniques.

 

Course Contents:

Programming exercises of the following chapters:

Chapter 1 Introduction to Computers, Programs, and Java 1

Chapter 2 Elementary Programming 23

Chapter 3 Selections 71

Chapter 4 Loops 115

Chapter 5 Methods 155

Chapter 6 Single-Dimensional Arrays 197

Chapter 7 Multidimensional Arrays 235

Chapter 8 Objects and Classes 263

Chapter 9 Strings and Text I/O 301

Chapter 10 Thinking in Objects 343

Chapter 11 Inheritance and Polymorphism 373

Chapter 12 GUI Basics 405

Chapter 13 Exception Handling 431  (Optional)

 

Credits: 0.5