Java Arrays and Loops

提供方
Coursera Project Network
在此指導項目中,您將:

Use a while loop to scan the data file and save the number of entries in the file.

Create the Array of Objects containing weather data.

Sort the weather data and store it in a file.

Clock2 hours
Intermediate中級
Cloud無需下載
Video分屏視頻
Comment Dots英語(English)
Laptop僅限桌面

In this project you will read weather data from a file and populate an Array with the file data. The data is then sorted in an Array, and output to another file. Loops are used in a Java program whenever a sequence of code must be repeated. A common use for a while loop is to read data from a file, where the file is of unknown length. A for loop, on the other hand is often used when the repeat count of a code sequence is known. A common use of a for loop is to iterate through an array. An Array is a list of items of a fixed size where each entry is the same type of data. The array could contain numbers, Strings of characters, or a user-defined data type. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

您要培養的技能

  • Java Exception Handling
  • Java For Loops
  • Java Arrays
  • Java File Processing
  • Java While Loops

分步進行學習

在與您的工作區一起在分屏中播放的視頻中,您的授課教師將指導您完成每個步驟:

  1. Analyze the data and create a Java Class to handle the data.

  2. Create and Populate a Java Array with sample data.

  3. Use a while loop to scan the data file and save the number of entries in the file.

  4. Create the Array of Objects containing weather data.

  5. Sort the weather data and store it in a file.

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心