A problem was reported through the Runestone "Report a Problem" form.
In Section 2.1, “Let’s Look at a Java Program,” Listing 2.1.1 appears to be displaying Python code instead of Java code. The example uses Python syntax such as def, init, and self, even though the section is supposed to introduce a Java program. I’m not sure if the wrong code example was uploaded or if there is an issue with how the textbook is displaying the content.
[warn] No ad placements found.
[log] Timezone cookie matches, not sending timezone to server
[log] This page served by undefined
[log] triggering runestone:pre-login-complete
[log] Runestone pre-login complete
[log] Loading Runestone component: activecode
[log] before get hist
[log] before get hist
[log] before get hist
[log] before get hist
[log] SpliceWrapper: received message subject: undefined from iframe: unknown
[log] making a new scrubber
[log] Fake change event, skipping the log
[log] making a new scrubber
[log] Fake change event, skipping the log
[log] making a new scrubber
[log] Fake change event, skipping the log
[log] making a new scrubber
[log] Fake change event, skipping the log
[log] Reading score sent for page
[log] adding video popouts
[log] setting up pretext
[log] Save logging event {"event":"knowl","act":"click","div_id":"./knowl/xref/python-hello-world.html","course_name":"comp230_RA_fa26","clientLoginStatus":true,"timezoneoffset":7}
[log] Runestone component activecode is being queued for import
[log] Webpack is starting the loading process for the following Runestone modules ["activecode"]
[log] Runestone component activecode has been loaded
[log] before get hist
[log] making a new scrubber
[log] Fake change event, skipping the log
[log] Save logging event {"event":"knowl","act":"click","div_id":"./knowl/xref/python-hello-world.html","course_name":"comp230_RA_fa26","clientLoginStatus":true,"timezoneoffset":7}
[log] focus on [object HTMLButtonElement]
A problem was reported through the Runestone "Report a Problem" form.
Description
In Section 2.1, “Let’s Look at a Java Program,” Listing 2.1.1 appears to be displaying Python code instead of Java code. The example uses Python syntax such as def, init, and self, even though the section is supposed to introduce a Java program. I’m not sure if the wrong code example was uploaded or if there is an issue with how the textbook is displaying the content.
Browser console log