Teaching Methods
The course Programming Language Foundation is one of the specialized fundamental courses, which means that it is a basic and prerequisite program for the follow-up professional courses. In order to improve the students' learning interest, and to obtain better learning effects, the task-based or problem-driven teaching mode should be used often in the class. In the problem-driven teaching mode, a problem will be proposed first, and then a series of analysis will be made on the problem, after that the algorithm to solve the problem will be given out, and finally the way how to use Java as a language tool to realize the algorithm in the computer will be shown.
For example, when the array needs to be introduced in the class, the instructor can guide the students to ask the following three questions consequently.
1. Why it is necessary to introduce arrays?
2. How to define an array in Java?
3. What are the applications of arrays?
In order to answer the first question. The instructor can propose a sorting problem in a scale of 10 numbers to the students and give enough time to the students to try to find a solution by themselves. Usually, the students will be puzzled. At an appropriate moment, the instructor should hint the students that it is not good to store the 10 numbers to be sorted in 10 independent variables. It is better to group them together. Furthermore, the instructor should tell the students that an array can help us to group the 10 numbers together in java, because an array is used as a good space to store the data with the same data type together in Java.
After the first question, the second question can be answered easily. Just tell the syntax for how to define arrays in Java.
As for the third question, the applications of arrays can be further discussed based on the sorting problem mentioned above, and then be expanded into the area of searching problems and others.
Problem-driven teaching model can let the students grasp the theoretical knowledge in practical problems or applications. From practice to theory, and vise visa. The application of problem-driven teaching model in the class can help the students to understand and grasp the knowledge well, and know how to use the knowledge effectively.

