The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

hey that's pretty cool... haven't found a place yet until that was kinda filled with Aussies...oh yeah, besides Aussie InFront

Just finished my Java programming exam today...and I must say....eeeaassy! The hardest bit was actually convincing myself that this was the exam and not my dreams! Seriously, the practice exam was harder...but hey, I've finished now so its ALL good! see you guys around

haha, nah its easy! well maybe coz I spent like the last 3 days trying to do it and I kinda know how to do my stuff like Applets and Applications which use ActionListener like the back of my hand now...and I know how to do stuff with arrays! yess! hehehe...mind you you I'll probably forget in about a day or two!

what kinda stuff you doing with Java? Since my course is not quite a design course, but not quite a computing course, we do Java but we concentrate on the graphical side. but what about you?

OH yeah and which part of Adelaide? are you close to those Planet Shakers events?

I'm doing computer and information science, it is *REALLY* boring, more boring than anything else I can image! (apart from iTec)..

We've havn't covered much really, just finished arrays... but thats just my first semester. I really want to do a straight out design course though, pity there arn't any

PHP Code:

import cs1.Keyboard;

public class P05Main

{

public static void main (String [] args)

{
double
temperature, // The temperature on a given day
highestTemperature, // The highest temperature, all days
lowestTemperature, // The lowest temperature, all days
rain; // The rainfall on a given day
int
numberOfDays = 0, // The number of days of data
numberOfRainyDays = 0; // The number of rainy days.

Plats
That's alright Java...not too hard. You seem to know what you're doing. Can I ask a few questions, and give a tip maybe
Q1: is there only supposed to be one import? or there isn't supposed to be any: import java.awt.*;

Q2: why doesn't this work? I chucked this in my java program thingy...the uni told us to us JCreator, so that's what I use...and since I saw you used the args[] array, I thought itd have to be an Application....but JCreator didn't like your import csl.Keyboard import. Not sure why.

Advice:
Not sure whether or not your uni has told you, but I've heard that its good practice to use those curly braces if you use loops. A whole chunk of my Java code didn't work just because of that...and so I ALWAYS put curly braces such like: INSTEAD OF THIS: