Hey all you java gurus, here are some classes for you to take a look at. Some may require you to install javabook, which I cant tell you how to do, but you can get the idea (inputbox, outputbox, its pretty simple guys)
This is my most recent creation, StringThang, its kinda cool. The main class takes an inputed string and does some crazy shit with it. It counts the number of words, prints the words backwards (ie I see him == i ees mih), prints the sentance backwards(ie i see him == him see i), prints the words in alphabetical order, and prints any words contained in other words(this part doesnt work right yet). This class uses mostly Sun Java stuff, but some javabook stuff as in you will have to change how you get the string initially, but after that itll work like a charm. Oh, and you will need these two classes too, cause i had to link em up for a class assignment.
GSQueue
Queue
This is a class that does some pretty simple calculator functions. The purpose of this lab was to make me learn how to throw exceptions, which i guess it did but I also wanted to shoot myself in the face. That aside, if you need to see some thrown exceptions in action here ya go.
Calculator
A node class your gonna need to run it
This is a binary search I did for class a while ago. The first half is kind of useless, unless you are in the class i took or are trying to understand how the search works. Otherwise, the second method is the binary search. Right now its searching through an array of integers that i have hardcoded into the main method, but you can easily adapt this method to search through anything. binarysearch.java
Here is some code for a linked list i made for class. Its commented pretty well, and it works flawlessly. It basically does the same thing the sun java linkedlist class does, but you can look at my code and many classes make you make a linked list.
linkedlist.java
listnode.java
listdriver.java
test.java
This is some code for all you guys doing the marine biology case study for APCS. I dont know if they are doin this next year, but whatever Im putting it up. This is from chapter 4 I think where you have to make a fish that goes in circles. You also have to implement breeding and dying in a seperate class from Fish, and then they had you make some changes to the SlowFish class.
CircleFish.java
SlowFish.java
RealFish.java, where breed and die are implemented
Here is some code dealing with recursion, its commented well so you can figure it out
Hanoi.java
Here is the case study zip file, for all you who may need it when your out of town or something, or maybe you just never bothered to load it at home cause everything was so damn easy you did it all at school like me
If any of you guys ever need help with some crazy java teachers assignment, dont hesitate to send me an email at sheepdog7876@yahoo.com, I check my email about every night during the week. I've probly been through the most whackjob java teacher there is, so i feel your pain and wont mind giving you a hand or some old code if i have it.