Winter 2023 Course Announcements and Reminders for CSE 121 with Elba Garza
Stay updated on important announcements and deadlines for CSE 121 course with Professor Elba Garza in Winter 2023. Take-home quiz ongoing, creative project due soon, and information on quiz retakes provided. Also, learn about file scanning using Scanner class and File I/O operations. Keep track of all upcoming assignments and tasks!
Download Presentation
Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
E N D
Presentation Transcript
CSE 121 Elba Garza Winter 2023 Music: Sold - John Michael Montgomery
Announcements, Reminders Quiz 2 - February 23rd 24th, 00:01 to 23:59 (ONGOING!) Take-home, same exact format as usual, and no longer! Open for 48 hours, start any time & given 1.5 hours to finish; Accommodations still apply. No retakes though! Can work together; must state with whom! Creative Project 3 out; due February 28that 11:59 PM Resubmission Form for R5 out; due February 28thby 11:59 PM Lesson 15 - Winter 2023 2
Announcements, Reminders Quiz Retake on Tuesday, February 28th: Retake Form out; due Sunday Feb 26that 11:59 PM Eligible Quizzes: Quiz 1 - 3rd and final opportunity! Quiz 0 retakes grading sorry, I didn t get to it this weekend! Lesson 15 - Winter 2023 3
Scanner fileScan = new Scanner(<File object>); Last Time File Input/Output New class used: File (need to warn about exceptions!) Need to import java.io.* Scanner Methods using Files: fileScan.hasNext() - Returns true if the Scanner contains another token of input, returns false otherwise. fileScan.hasNextInt()/hasNextDouble() - Returns true if the Scanner s next token of input is a(n) int/double, returns false otherwise. fileScan.hasNextLine() - Returns true if the Scanner contains another line of input, returns false otherwise. fileScan.next() - Scans and returns the next token of input from this Scanner. fileScan.nextInt()/nextDouble() - Scans and returns the next token of input from this Scanner as a(n) int/double. fileScan.nextLine() - Scans and returns the next line of input from this Scanner. Lesson 15 - Winter 2023 4
Scanner lineScan = new Scanner(<String>); Plan for Today Scanner fileScan = new Scanner(<File object>); File Input/Output New class used: File (need to warn about exceptions!) Need to import java.io.* PrintStreams PrintStream Methods: output.print(<value>) - Prints the given value output.println(<value>) - Prints the given value and then terminates the line with a newline PrintStream output = new PrintStream(<File Object>); Lesson 15 - Winter 2023 5