Search found 43 matches
Re: PS #4
Yes, something like <your-initials>-PS4, or you can stick the code in one of your existing repos. -A
PS #4
Hi, I've been getting some questions about the homework. The idea is that you are using a String as the key to retrieve a List of GeometricShapes. So, for instance: Map<String, List<GeometricShape>> shapeMap = new HashMap<String, List<GeometricShape>>(); List<GeometricShape> circleList = new List<Ge...
- Sat Oct 16, 2010 10:30 am
- Forum: Fall 2010
- Topic: Java File Structure Question
- Replies: 1
- Views: 5118
Re: Java File Structure Question
Hi, each public class and public interface should be in its own file, which is named the same name as the class or interface, ending with ".java". -A
- Sun Oct 10, 2010 9:45 pm
- Forum: Fall 2010
- Topic: Problem Set #3
- Replies: 5
- Views: 8399
Re: Problem Set #3
Hi, sorry if the assignment wasn't clear. The idea is to use the controlP5 library for GUI elements that control some aspect of a *second* Processing library of your choice. That is, to make an interface for Minim or GLGraphics or any one of the dozens of libraries found at http://processing.org/ref...
- Sun Oct 10, 2010 2:53 pm
- Forum: Fall 2010
- Topic: Compilation woes
- Replies: 3
- Views: 6138
Re: Compilation woes
It's just a weird thing that Processing expects. You could hardcode it in your main method, or to save typing it twice you could use the $1 arguments as in the example script from the slides. -A
- Sun Oct 10, 2010 12:14 pm
- Forum: Fall 2010
- Topic: Compilation woes
- Replies: 3
- Views: 6138
Re: Compilation woes
Hi, if you look at your runMe bash script you will see that your classpath doesn't include the current directory. You need to specify every directory, even the one you are running from. If you prepend your classpath with the "." to indicate the current directory, then your code will run fine. In you...
- Wed Oct 06, 2010 11:15 pm
- Forum: Fall 2010
- Topic: A big pile of Java source code
- Replies: 1
- Views: 5544
Re: A big pile of Java source code
Thanks for uploading that, Michael. There are links to online Java textbooks from the syllabus as well. I have some slides/code from an Intro Java course I taught a couple of years ago that you might also find helpful: http://www.mat.ucsb.edu/~a.forbes/cs5JA/index.html . You'll notice that we are al...
- Sun Oct 03, 2010 11:09 pm
- Forum: Fall 2010
- Topic: Command research thread
- Replies: 7
- Views: 9279
Re: Command research thread
Most of the man pages have an "EXAMPLES" section which can provide insight into the commands when the description is vague or context is unclear.
- Fri Oct 01, 2010 12:42 pm
- Forum: Fall 2010
- Topic: Working with Libraries
- Replies: 1
- Views: 5294
Re: Working with Libraries
Hi, if you are working directly in Processing and are using custom libraries (i.e., ones that are not included automatically in the Processing distribution) you will probably have to put your sketch in the default Processing sketch folder. On OSX this is in "~/Documents/Processing/". Beneath that di...
- Fri Oct 01, 2010 12:15 pm
- Forum: Fall 2010
- Topic: question on overriding
- Replies: 1
- Views: 5113
Re: question on overriding
Hi yes, I probably should have used the word "extend" instead of "override." Often when you use the "extends" keyword to inherit from a class you end up overriding some of the methods. You don't need a special keyword to override a method, you simply make the function signature look the same. -Angus...