Quantcast
Channel: » Java
Browsing latest articles
Browse All 6 View Live

Image may be NSFW.
Clik here to view.

My First Java Program: Mad Libs Haiku Generator

So, today was my second day of OOP class. We’re starting out in Java; naturally, our first programs were a bunch of print statements with names like “Welcome.java” and “Demo.java”. After figuring out...

View Article



Image may be NSFW.
Clik here to view.

My PITA Coin Toss App: Java 101

There are about 50 more efficient ways to write a coin toss Java app, but this is the way my professor wanted it done: Using the Random class and a do…while loop with a user-specified counter. I’m...

View Article

Image may be NSFW.
Clik here to view.

More Java 101: Printing Left/Right Aligned Triangles

Fun with asterisks! Here’s some more crap code I wrote for my Java class. This time, I had to print several triangles made of asterisks. I’ve seen this problem a LOT on the web, and it took me a while...

View Article

Image may be NSFW.
Clik here to view.

Java 101: My First Applet

Holy crap! It draws shapes using a random number generator! I have created this useless and ugly applet as part of the amazing (no sarcasm — it’s been a ball) learning experience that is my first Java...

View Article

Image may be NSFW.
Clik here to view.

Java 101: Primes, Mersennes, & Perfects with Loops & JOptionPane

Here’s another one of my (for me) brutally difficult homework assignments. I gotta be honest, this one had me nearly in tears and telling Eston I was ready to quit. Hugs and hot cocoa and a few helpful...

View Article


Image may be NSFW.
Clik here to view.

Java 101: SuperLotto

So in Java class today, I got to write a lotto ticket program using an array, a nifty method, some string concatenation and a couple other cool Java tricks. The spec said to create a getLottoTicket...

View Article
Browsing latest articles
Browse All 6 View Live


Latest Images