作業注意事項
1.請注意輸入輸出 若不一致將算錯誤 務必注意
2.繳交次數上限為10次 請仔細檢查程式碼與輸入輸出無誤後再上傳
3.考試時間為三小時,18:25-21:25,作答完成即可交卷離場(且不得再進入考試)
4.退出考試頁面後將不得再次進入
5.請同學在送出後重新整理
待所有測資成績(勾或叉)出爐再做下一題
**附件:可能會使用到的套件、語法**
僅列出語法或套件,基本運算與邏輯判斷式就不列出。
java.util.Scanner //Receive user input
nextInt() // Receive an Integer entered by the user
nextDouble() // Receive a Double entered by the user
nextFloat() // Receive a Float entered by the user
nextBoolean() // Receive a Boolean entered by the user
nextLine() // Receive a String entered by the user, including spaces
next() // Receive a String entered by the user, not including spaces.
for (initialExpression; testExpression; updateExpression){…} //for loops
while (condition){…} // while loops
switch(expression){case1: … default:…} //switch case
if (condition){…}else{…} //if else
System.out.println() // Output, newline
System.out.print() // Output without newline
(int) // Conver variable to Integer
(char) // Conver variable to Character
.equals() // Compare two Character objects against each other
.contains() // Checks whether a string contains a sequence of characters
Comments