You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _sources/Unit1-Getting-Started/calling-class-methods-2026.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -160,7 +160,7 @@ When calling the ``square`` method, the return value can be stored in a variable
160
160
:answer_d: square(3)+divide(5,2)
161
161
:answer_e: Nothing, it does not compile.
162
162
:correct: a
163
-
:feedback_a: Yes, the square(3) method is called first and returns 9. Then the divide(6,2) method is called and returns 3. The sum of 9 and 3 is 12.
163
+
:feedback_a: Yes, the square(3) method is called first and returns 9. Then the divide(5,2) method is called and returns 2 because it does int division and leaves off the decimal part. The sum of 9 and 2 is 11.
164
164
:feedback_b: The divide function does integer division.
165
165
:feedback_c: The + here will be interpreted as addition since the methods return ints.
166
166
:feedback_d: The square and divide methods are called and return values that are added together.
Copy file name to clipboardExpand all lines: _sources/Unit1-Getting-Started/javaIDEs.rst
+14-10Lines changed: 14 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,28 +12,32 @@ Java Development Environments
12
12
single: Netbeans
13
13
single: VSCode
14
14
single: Github
15
-
single: Codespaces
15
+
single: JuiceMind
16
+
single: jGRASP
17
+
single: IntelliJ
18
+
single: PickCode
16
19
17
20
The tool that we use to compile a Java source file into a Java class file is called a **compiler**. Most programmers use an **Integrated Development Environment** (IDE) that has the compiler built in and helps you write, compile, run, and debug programs.
18
21
19
22
You can learn Java by just using the interactive coding panels called **Active Code** in this e-book. If you are logged in, the Active Code will remember your changes and even show you a history of your changes to the code if you click on Load History.
20
23
21
24
However, it's a good idea to also try a Java IDE to build code outside of this e-book, especially to try coding with user input which Active Code cannot do. There are many Java IDEs available. Here are some of most popular ones used by AP CSA teachers:
22
25
23
-
Replit (Online IDE)
26
+
Cloud IDEs
24
27
--------------------------------------
25
28
26
-
Replit (https://replit.com/) is a free online development environment. You can login with a Google account or make an account and create new projects (click the + new repl button and type in Java) and all of your code will be kept online in your account. Replit is a great option if you are using a Chromebook or you cannot install software on your computer or you want an easy no-installation option. Replit no longer has an education Teams plan.
29
+
There are a lot of online cloud IDEs where you can code online in many programming languages. Most are free to start, but offer different features for a price. These are great options if you are using a Chromebook or you cannot install software on your computer or you want an easy no-installation option. Some of the Active Code samples in this e-book also include a link to online IDEs. These projects can be copied to make your own copy.
27
30
28
-
Be aware that Replit has turned on its AI feature for code completion for all accounts (https://replit.com/ai). Each user can turn the AI on and off at the bottom of the code window, and use an AI chat window to ask questions of the AI.
31
+
Here are some popular online IDEs:
29
32
30
-
There is a firewalled replit domain for schools at https://firewalledreplit.com that filters content so that students stay within the school filters, see https://docs.replit.com/firewalled-replit/firewalled-replit-faq.
31
-
Some of the Active Code samples in this e-book also include a link to a firewalled replit project.
32
-
These projects can be forked to make your own copy. If you are pair programming, replit has an Invite button where you can generate a join link to share your code with another person, and you can both make changes at the same time.
33
+
- Replit (https://replit.com/) an online IDE which recently switched to only allowing 3 projects at a time for free.
34
+
Be aware that Replit has turned on its AI feature for code completion for all accounts (https://replit.com/ai). Each user can turn the AI on and off at the bottom of the code window, and use an AI chat window to ask questions of the AI.
35
+
36
+
- JuiceMind (https://juicemind.com/) is an online IDE that offers many free and paid features for teachers to set up classrooms like Coding Rooms. It has a built-in version of CSAwesome.
37
+
38
+
- PickCode (https://pickcode.io/) is another online IDE that offers many free and paid features for setting up classrooms.
39
+
33
40
34
-
Online IDEs usually cannot use graphical user interfaces and just do input and output as text.
35
-
However, replit has a built-in javax.swing graphical user interface.
36
-
You need to choose Java Swing instead of just Java to get this environment when you start a new repl project.
Copy file name to clipboardExpand all lines: _sources/index.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ To make sure the site saves your answers on questions, please click on the perso
19
19
20
20
ATTENTION high school women of color taking AP CSA or CSP: if you identify as female and as Black, Hispanic/Latina, and/or Native American, apply to participate in **Sisters Rise Up**. The goal of Sisters Rise Up is to help you succeed in your AP Computer Science course and on the exam. They offer one-hour help sessions several times a week and once a month special help sessions often with guest speakers from computing. If you enroll in Sisters Rise Up and send in your AP CS exam score by the end of August, you will be sent a gift card for $100. See the |flyer| and apply at https://tinyurl.com/55z7tyb9.
21
21
22
-
..ATTENTION high school women, genderqueer, and non-binary technologists: Apply Sept. 1st until Oct. 20th for the **NCWIT Award for Aspirations in Computing** to be recognized for all that you do (or want to do) in technology. Visit http://www.aspirations.org/AiCHSAward for details.
22
+
ATTENTION high school women, genderqueer, and non-binary technologists: Apply Sept. 1st until Oct. 29th for the **NCWIT Award for Aspirations in Computing** to be recognized for all that you do (or want to do) in technology. Visit http://www.aspirations.org/AiCHSAward for details.
23
23
24
24
.. ATTENTION high school seniors: apply for the https://www.amazonfutureengineer.com/scholarships until Dec. 15th for college scholarships and Amazon summer internships for students with financial need.
25
25
@@ -101,7 +101,7 @@ Index
101
101
102
102
If you see errors or bugs, please report them with this |errors form|. If you are a teacher who is interested in CSAwesome PDs or community, please fill out this |interest form| and join the |teaching CSAwesome group| which will give you access to lesson plans at |csawesome|.
0 commit comments