Tired of crabs, lizards, and actor masks? The procedure to change the icon used in a Gridworld project is as follows: Create the desired graphic as a 48×48 pixel GIF image. Save the image in the same folder as the .class file for the bug or critter or actor. For example, if you create a [...]
Archive for the ‘AP Computer Science A’ Category
Gridworld Graphics
Posted: April 25, 2012 in AP Computer Science A, EducationTags: gridworld apcs java
0
Java Bitwise Or
Posted: January 11, 2010 in AP Computer Science ATags: bitwise, bitwiseor, Java, operator, or, pipe
Java Bitwise Or System.out.print(15|32) returns 47 which is tricky because you assume that addition is taking place. But the following line System.out.print(11|33) returns 43 This is not addition, it is called the bitwise Or. To illustrate: Step 1: Convert the integers to binary lining up the digits in place value. 11 = 001011 33 = [...]
Adding Gridworld to NetBeans IDE 6.5
Posted: April 19, 2009 in AP Computer Science ATags: AP Java programming APCS Gridworld
1 – download and extract JAR file to a local folder 2 – In NetBeans, select Tools – Libraries 3 – Click Add JAR/Folder and point to the location of the JAR file