Google Classroom
Sign in your Google Classroom student account;
Join our Google Classroom using the join code I provided.
AP Classroom
Sign in your Collegeboard AP student account;
Join our AP classroom using the join code I provided.
Codingbat
Click "create account" link on the top right corner;
Create your account using your preferred email;
Once you have created your account, click the "prefs" link on the top right corner;
In the "Teacher Share" section, enter my email: HChen8@schools.nyc.gov and then press "Share";
In the "Memo" section, put in your Class Period: Last Name, First Name.
(For example, in my case if I am in period 3 it will be "P3: Chen, Huo".
Practice-it
Click "Create an Account"
Use your preferred email to create an account.
LeetCode
Go to https://leetcode.com/
Click "Create an Account"
Use your preferred email to create an account.
We will be using an online Java compiler this school year; for this reason, downloading the software below is no longer needed. However if you want to install Java environment and editor locally on your computer, you can download the following packages. If you have any questions please let me know.
Java Development Kit (JDK): https://www.oracle.com/java/technologies/downloads/
Download any one of these editor on your personal computer:
Visual Studio Code: https://code.visualstudio.com/ (Preferred)
Atom: https://atom.io/
NetBeans: https://netbeans.apache.org/
vscode.dev (online editor only): https://vscode.dev/
jdoodle (online editor and compiler): https://www.jdoodle.com/online-java-compiler
Using code editors without compilation capability
if you are using any code editor without compilation capability, you can compile Java source code in Windows Command Prompt or Mac Terminal:
In Windows, you can open Command Prompt and set the current path to current folder by typing "cmd" in the file explorer address bar.
Let's say you java file is called javafile.java
1) Use the corresponding command prompt or terminal commands to get to the correct directory;
cd <enter folder pathname>
2) Use the following command to compile your java source file. This step compile the sourece file into bytecode file (in this case javafile.class)
javac javafile.java
3) Use the folowing command to run your compiled java file.
java javafile
Make sure you have JDK installed. You can check by typing "javac" into your Command Prompt(cmd)/Powershell in Windows or Terminal in MacOS. If it shows "javac comand not found" that means JDK is not installed on your machine. Otherwise it is installed.
Let's first save the following content in a file called Sample.java and save it in a folder called "Example" on your desktop.
public class Sample
{
public static void main(String[] args)
{
System.out.println("My first program");
}
}
Compile in Windows Command Prompt (cmd)/Powershell or Mac Terminal
In Windows, you can open Command Prompt and set the current path to current folder by typing "cmd" or"powershell" in the file explorer address bar.
Alternatively you can use the cd command in command prompt or terminal commands to get to the correct directory;
cd <enter folder pathname>
2) Use the following command to compile your java source file. This step compile the sourece file into bytecode file (in this case Sample.class)
javac Sample.java
3) Use the folowing command to run your compiled java file.
java Sample
Go to https://github.com/
Use your bronx science email to signup a free account.