top of page

Forum Posts

Nelson Nishio
Apr 06, 2024
In Introduction to Java
Hello everyone, Today was our final review day and we reviewed all of the topics we covered so far. It has been a pleasure to teach you this year. I hope my course inspired you and I wish you the best of luck in your programming journey! All materials will still be available with the same Google Drive link: https://drive.google.com/drive/folders/1dY_nmHZqfedv-Be86mvNavp8quNvjAwP Here is the feedback form if you would like to fill it in for the last class: https://forms.gle/L3PVjyzWxtEuL6q67 Best, Nelson (Mentor)
1
0
3
Nelson Nishio
Mar 23, 2024
In Introduction to Java
Hello everyone, Today we did a review of object-oriented programming. It is a complex but important topic and is tested on the AP Computer Science A exam. All slides/materials: https://drive.google.com/drive/folders/1dY_nmHZqfedv-Be86mvNavp8quNvjAwP Homework: none, enjoy your Spring Break Feedback form: https://forms.gle/L3PVjyzWxtEuL6q67 Best, Nelson (Mentor)
0
0
1
Nelson Nishio
Mar 17, 2024
In Introduction to Java
Hello everyone, This week and last week we covered ArrayLists and introduction to object-oriented programming. Remember that the main difference between ArrayLists and arrays is that ArrayLists can change size, but its syntax is a little bit more complicated so arrays should be used when size does not change. Remember that classes are like templates with data (instance variables) and functions for a kind of customized datatype. As the classes are only templates for the "datatype," you need to create instances of the class (objects) for functionality. You may create as many objects as you want, just like how you can create as many arrays as you want. Today's slides: https://docs.google.com/presentation/d/1yWhhXKT27wTcJDrkXjXO8Gr1cXKBstpL4qKagi13Xxs/edit#slide=id.g21186413176_0_75 Homework: NONE. Happy St. Patrick's Day!! Feedback form: https://forms.gle/L3PVjyzWxtEuL6q67 Best, Nelson (Mentor)
0
0
1
Nelson Nishio
Mar 02, 2024
In Introduction to Java
Hello everyone, This week we did a review of functions. There is no homework this week, enjoy your week! Homework: None Feedback form: https://forms.gle/L3PVjyzWxtEuL6q67 All materials: https://drive.google.com/drive/folders/1dY_nmHZqfedv-Be86mvNavp8quNvjAwP Best, Nelson (Mentor)
0
0
5
Nelson Nishio
Feb 26, 2024
In Introduction to Java
In this week's class, we reviewed functions and creating custom functions. Functions are widely used as reusable code mainly to remove redundancy and add convenience and conciseness. This week's homework: https://forms.gle/WkcnyJt5cvDtyvXMA Feedback form link: https://forms.gle/L3PVjyzWxtEuL6q67 All materials: https://drive.google.com/drive/folders/1dY_nmHZqfedv-Be86mvNavp8quNvjAwP Best, Nelson (mentor)
0
0
1
Nelson Nishio
Feb 24, 2024
In Introduction to Java
Hello everyone, Today we covered the basics of functions. Sorry for another late post. Today's homework: none, have a nice ski week break! Feedback form: https://forms.gle/L3PVjyzWxtEuL6q67 All materials: https://drive.google.com/drive/folders/1dY_nmHZqfedv-Be86mvNavp8quNvjAwP Best, Nelson (mentor)
0
0
4
Nelson Nishio
Feb 17, 2024
In Introduction to Java
Hello everyone, This week we covered switch statements. It is basically a bunch of if/else if statements for the value of something, which is sometimes convenient. All materials: https://drive.google.com/drive/folders/1dY_nmHZqfedv-Be86mvNavp8quNvjAwP(https://drive.google.com/drive/folders/1dY_nmHZqfedv-Be86mvNavp8quNvjAwP) No homework this week! Enjoy the break. Best, Nelson
1
0
2
Nelson Nishio
Feb 03, 2024
In Introduction to Java
Hello everyone, Today we reviewed topics about 2D arrays and some example problems on Kahoot, with some programming questions. The 2D array is probably the most important topic in programming in general and is always used. It is extremely important to understand the basics of 2D arrays in computer science. This week's homework: https://forms.gle/eqUvdCSgB22YgSj46(https://forms.gle/eqUvdCSgB22YgSj46) Class feedback form: https://forms.gle/L3PVjyzWxtEuL6q67(https://forms.gle/L3PVjyzWxtEuL6q67) All slides/recordings/homeworks: https://drive.google.com/drive/folders/1dY_nmHZqfedv-Be86mvNavp8quNvjAwP(https://drive.google.com/drive/folders/1dY_nmHZqfedv-Be86mvNavp8quNvjAwP) Large Question Bank: https://www.lol-101.com/classrooms/java-question-bank/if-else-and-nested-if-else-exercises(https://www.lol-101.com/classrooms/java-question-bank/if-else-and-nested-if-else-exercises) Office hours: Fridays 7-8:30pm PST - https://us04web.zoom.us/j/8615445674?pwd=ZGJGZU1GVjJSQkxxVlpiTXFCTWpWdz09(https://us04web.zoom.us/j/8615445674?pwd=ZGJGZU1GVjJSQkxxVlpiTXFCTWpWdz09)
0
0
1
Nelson Nishio
Jan 21, 2024
In Introduction to Java
Hello everyone, This week we covered binary/octal/hexadecimal multiplication and division. Remember a key point is to convert to decimal and then back to whatever base you are working with for multiplication and division. We also covered basic syntax of the 2D array. Remember that 2D arrays are arrays of arrays, so each "element" of a 2D array is one array (or one row). (Example: say your 2D array is called arr; when you use arr[0] it will get the first row (or array) of the array. To get a singular value at a particular row i and column j, you need to access arr[i][j]). For-each loops are just designed to access each element of an array. Remember that a for-each loop will only run the number of elements of an array times, and if you use a for-each loop on a 2D array, the variable you made that represents each element in the array will be each row in the array. This week's homework: https://forms.gle/59zifYP84fuxPkMD9(https://forms.gle/59zifYP84fuxPkMD9) Feedback form (please fill out after every time you join class): https://forms.gle/L3PVjyzWxtEuL6q67(https://forms.gle/L3PVjyzWxtEuL6q67) Google Drive folder will ALL materials (slides/recordings/past homework): https://drive.google.com/drive/folders/1dY_nmHZqfedv-Be86mvNavp8quNvjAwP(https://drive.google.com/drive/folders/1dY_nmHZqfedv-Be86mvNavp8quNvjAwP) Office hours: 7-8:30 pm every Friday https://us04web.zoom.us/j/8615445674?pwd=ZGJGZU1GVjJSQkxxVlpiTXFCTWpWdz09 (https://us04web.zoom.us/j/8615445674?pwd=ZGJGZU1GVjJSQkxxVlpiTXFCTWpWdz09) Good luck, Nelson (mentor)
0
0
2
Nelson Nishio
Jan 13, 2024
In Introduction to Java
Hello everyone, Today we introduced conversions between base 10, base 2, base 8, and base 16. We also discussed how to add/subtract them. These concepts are very useful for competitions such as ACSL (acsl.org)(http://acsl.org) Announcement: We are hosting office hours from 7-8:30 pm every Friday to answer questions about homework or any programming questions in general. Even if you do not have any questions, you are always welcome to join any time to listen to other people's questions and you might learn something new! To be clear, these office hours are not required to join. Homework: https://forms.gle/w8McdFeLFnz2SbX49 (https://forms.gle/w8McdFeLFnz2SbX49) Feedback form: https://forms.gle/L3PVjyzWxtEuL6q67 (https://forms.gle/L3PVjyzWxtEuL6q67)(Please do this every time you come, even if you left early!!) Large Question Bank for extra practice: Link(https://www.lol-101.com/classrooms/java-question-bank/if-else-and-nested-if-else-exercises) Best, Nelson (Mentor)
0
0
8
Nelson Nishio
Dec 10, 2023
In Introduction to Java
Hello everyone, Today we introduced array syntax and some common algorithms using arrays. Announcement: Next class is the first Saturday of January, have a good Winter Break! This week's slides: https://docs.google.com/presentation/d/1tM5D7B1dRBQMqJ2XovH8AjVcUTMY_0XER_cy3cKFSU4/edit#slide=id.p (https://docs.google.com/presentation/d/1tM5D7B1dRBQMqJ2XovH8AjVcUTMY_0XER_cy3cKFSU4/edit#slide=id.p) This week's homework: https://forms.gle/HLYNw5BJv2BDaGjD9(https://forms.gle/HLYNw5BJv2BDaGjD9) Feedback form: https://forms.gle/L3PVjyzWxtEuL6q67(https://forms.gle/L3PVjyzWxtEuL6q67) Question bank for extra practice: https://drive.google.com/file/d/1Lf4grCiLBGUlEbJK8hay0RFy4tElXleH/view(https://drive.google.com/file/d/1Lf4grCiLBGUlEbJK8hay0RFy4tElXleH/view) If you decide to do extra practice problems, please post your answers along with question you did in this post! Best, Nelson (Mentor)
1
0
14
Nelson Nishio
Dec 03, 2023
In Introduction to Java
Hello everyone, Today we learned about do-while loops. The main takeaway is that do-while loops, unlike the other two loops (for-loops/while-loops) always run their code at least once, regardless of whether the condition is true to start with or not. Here is this week's homework: https://forms.gle/mHmPSrZzb4YppqF87(https://forms.gle/mHmPSrZzb4YppqF87) Feedback form: https://forms.gle/L3PVjyzWxtEuL6q67(https://forms.gle/L3PVjyzWxtEuL6q67) Question bank for extra practice: https://drive.google.com/file/d/1Lf4grCiLBGUlEbJK8hay0RFy4tElXleH/view(https://drive.google.com/file/d/1Lf4grCiLBGUlEbJK8hay0RFy4tElXleH/view) If you decide to do extra practice problems, please post your answers along with question you did in this post! Good luck, Nelson (mentor)
0
0
8
Nelson Nishio
Nov 19, 2023
In Introduction to Java
Today we covered while loops, sentinel values for while loops, and the fencepost question with commas. Here are the slides/recordings for this course: https://drive.google.com/drive/folders/1dY_nmHZqfedv-Be86mvNavp8quNvjAwP(https://drive.google.com/drive/folders/1dY_nmHZqfedv-Be86mvNavp8quNvjAwP) Today's homework: https://forms.gle/gzNZjd5oF6jXMu2e9(https://forms.gle/gzNZjd5oF6jXMu2e9) Feedback form: https://forms.gle/L3PVjyzWxtEuL6q67 (https://forms.gle/L3PVjyzWxtEuL6q67) Extra problems for practice: If/else statements (useful practice for ACSL/AP Computer Science A)  https://www.lol-101.com/classrooms/java-question-bank/if-else-and-nested-if-else-exercises(https://www.lol-101.com/classrooms/java-question-bank/if-else-and-nested-if-else-exercises) While loops: https://www.lol-101.com/classrooms/introduction-to-java/5-5-what-if-we-don-t-know-how-many-times-to-repeat (https://www.lol-101.com/classrooms/introduction-to-java/5-5-what-if-we-don-t-know-how-many-times-to-repeat) If you decide to do the extra problems, please submit your answer here, and I will give you feedback. Please make sure you say which question you solved. Good luck, Nelson (Mentor)
0
0
6
Nelson Nishio
Nov 12, 2023
In Introduction to Java
Today we introduced for loops. This is one of the most important topics in Java, here are the slides/recordings for today's lesson lesson: https://drive.google.com/drive/folders/1dY_nmHZqfedv-Be86mvNavp8quNvjAwP?usp=drive_link(https://drive.google.com/drive/folders/1dY_nmHZqfedv-Be86mvNavp8quNvjAwP?usp=drive_link) Today's Homework: https://forms.gle/yN1QUDVeJvHaHk8t7(https://forms.gle/yN1QUDVeJvHaHk8t7) Feedback form: https://forms.gle/L3PVjyzWxtEuL6q67(https://forms.gle/L3PVjyzWxtEuL6q67) Extra problems: https://www.lol-101.com/classrooms/java-question-bank/if-else-and-nested-if-else-exercises(https://www.lol-101.com/classrooms/java-question-bank/if-else-and-nested-if-else-exercises) If you decide to do these problems ^ please post your answers here! Good luck, Nelson (Mentor)
0
0
15
Nelson Nishio
Nov 05, 2023
In Introduction to Java
Today we talked about boolean operators and if/else if/else statements. Here are the slides for review: https://docs.google.com/presentation/d/12jf-F8Lm3YxeHwvGKNIP8CD5Y8V_c4fsDvtgDhm2jKU/edit (https://docs.google.com/presentation/d/12jf-F8Lm3YxeHwvGKNIP8CD5Y8V_c4fsDvtgDhm2jKU/edit) Homework link: https://forms.gle/ndTR8ZqRH2Q23vndA (https://forms.gle/ndTR8ZqRH2Q23vndA) Please do the homework! It is very important for your understanding. Try to do the programming problem. Here are some extra problems you can do if you want more practice: https://www.lol-101.com/classrooms/java-question-bank/if-else-and-nested-if-else-exercises (https://www.lol-101.com/classrooms/java-question-bank/if-else-and-nested-if-else-exercises) Good luck everyone!
0
1
7
Nelson Nishio
Oct 30, 2023
In Introduction to Java
Day 1 - We talked about what Java is and how to start programming with an IDE. I introduced all of you to IntelliJ, which you can find the installation steps + guides to some helpful features (also in the drive folder) here: https://docs.google.com/document/d/1dSAYlCZ0JEceOC5ZkxHKdmDbXCzaImh9ztS0lGBX5lc/edit?usp=drive_link(https://docs.google.com/document/d/1dSAYlCZ0JEceOC5ZkxHKdmDbXCzaImh9ztS0lGBX5lc/edit?usp=drive_link) Day 2 - We talked about basic primitive types, and how to print variables using System.out.pri(http://System.out.pr)ntln() and System.out.pri(http://System.out.pr)nt(). The difference between these two is the println() goes to the next line, while print() does not. We went over Java naming conventions, arithmetic expressions, and shorthand operators. Day 3 - We went over String concatenation, implicit & explicit casting, standard Math functions, and the mod operator. We did important practice using Math functions to create code that calculates several common problems. Day 4 - We went over using the Scanner class to take in input to our code, practicing various ways of taking in input.. Scanners have different methods to take in different types: String (only one word/token) - sc.next((http://sc.next)); int - sc.nextI(http://sc.next)nt(); double - sc.nextD(http://sc.next)ouble(); (all other primitive types use sc.nextT(http://sc.next)YPE(); ) An entire line as a string - sc.nextL(http://sc.next)ine(); Day 5 (Review Day) - We did a thorough review of the topics from the past 4 weeks. Day 6 - We talked about the difference between characters and strings. Characters are any typeable character (surrounded by ' '), encoded into the computer as an integer (ASCII Table) and can be added/subtracted/multiplied/divided. Strings are a sequence of characters (surrounded by " "). They are zero-indexed, meaning their index starts from 0 and ends at length() - 1. We also talked about many string functions - length(), charAt(), substring(), indexOf(), lastIndexOf() Common mistake: substring() function has 2 variants: Variant 1: only one parameter substring(x) - takes the substring of the main string FROM (including) index x to the end Variant 2: two parameter substring(x,y) - takes substring of main string from (including) index x to index y (EXCLUDING). Remember the second index is EXCLUDED! Day 7 Continuation of string functions - contains(), equals(), equalsIgnoreCase() compareToIgnoreCase(), trim(), toUpperCase(), toLowerCase() Did Kahoots/practice of these functions. For examples of codes using these functions, refer to https://www.codiva.io/p/c0202730-89fd-49aa-95cf-80558cede564 (https://www.codiva.io/p/c0202730-89fd-49aa-95cf-80558cede564)(includes helpful explanation comments) Day 8 We discussed flow control structures, boolean operators, truth tables, and if/else if/else statements. FOR ALL MATERIALS (SLIDES/RECORDINGS): https://drive.google.com/drive/folders/1dY_nmHZqfedv-Be86mvNavp8quNvjAwP(https://drive.google.com/drive/folders/1dY_nmHZqfedv-Be86mvNavp8quNvjAwP) After every class, please fill out the class feedback form: https://forms.gle/L3PVjyzWxtEuL6q67(https://forms.gle/L3PVjyzWxtEuL6q67) For any questions, please reply to this post!
0
2
9

Nelson Nishio

Forum Moderator

Intro to Java Mentor

More actions
bottom of page