In class bordom


So today in my Java class, when everyone was learning how to do their Hello world “programs” I just coded some random thing that takes input until a certain string is entered, and counts the vowels.
I will probably be posting a whole bunch of random codes up as the weeks go on and I am [...]

Java Applet as a Facebook App


I recently received an email asking how I figured out how to pass information from the Facebook API to a Java Applet.
In the email, the man wanted to be able to access the users Facebook images so they can edit them within the applet. The way the Facebook API is setup, you can not pass [...]

Java – Downloading a Website


Recently I had to figure out how to access a specific url on my server from within Java to update the scores for a Java based game. I figured out that the easiest way to to this is to download the whole contents of the page. This simulates you actually gling to the site on [...]

Java – Saving Text Files


Well yesterday we looked at loading text files in Java, today we will look at writing text files.
The code is very similar, but instead of FileInputStream, FileOutputStream will be used.
I don’t expect this one to be as long as the loading text files. It is all the same principal so there is no need [...]