Java code that I have done either for homework or just because i felt like it.