Archive for the ‘AP Computer Science A’ Category

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 [...]

Java Bitwise Or

Posted: January 11, 2010 in AP Computer Science A
Tags: , , , , ,

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 = [...]

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