I know I've seen a couple of ppl in the couple of hrs that I've been here...but...oh yeah, and ..yes I am![]()
| SitePoint Sponsor |
I know I've seen a couple of ppl in the couple of hrs that I've been here...but...oh yeah, and ..yes I am![]()





I am![]()
Actually I think you followed a link I put at the Australian INfront forums if i'm not wrong
Welcome to sitepoint anyway...
you can go introduce yourself in the introductions forums if you haven't yet -![]()
hehe, sure did...you posted after me, and so I looked in your profile....saw this site was pretty good...so I joined![]()
There's quite a lot of Australians here.
In fact, SitePoint is an Australian company.
G'day!
[mmj] My magic jigsaw
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Bit Depth Blog · Twitter · Contact me
Neon Javascript Framework Jokes




Sydney Oi Oi Oi!
affordable website design
:: sydney australia ::





there are heaps of aussies here, it is not suprising to sometimes see half the posts in some threads all from down under.
i'm from wonderful queensland![]()


im from sydney,
it would nice to see this thread become really long!
Internet Business - Blog about starting an Internet Business.





guess where im from
<----------
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





Originally posted by chewman
Just finished my Java programming exam today...and I must say....eeeaassy!![]()
You're doing java as well??? argggahhha
You want to pop over to Adelaide and do mine for me? I think i'm going to fail it![]()
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?
Last edited by chewman; Jun 23, 2002 at 23:39.





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
is about the extent of my java experiencePHP 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.
System.out.println ("Gavin Benda. 100000117. Thursday 13. Room F1-11");
System.out.println ("***********************************************");
System.out.println ("This is my work as defined by the");
System.out.println ("university's academic misconduct policy.");
// Get user input
System.out.print ("Enter the temperature and rainfall data >");
temperature = Keyboard.readDouble();
rain = Keyboard.readDouble();
lowestTemperature = temperature;
highestTemperature = temperature;
int dayCount = 0;
int rainyDayCount = 0;
while (rain >= 0)
{
if (temperature > highestTemperature)
highestTemperature = temperature;
else if (temperature < lowestTemperature)
lowestTemperature = temperature;
else {}
System.out.print ("Enter the temperature and rainfall data >");
temperature = Keyboard.readDouble();
rain = Keyboard.readDouble();
numberOfDays = ++dayCount;
// Check rain is a (+)ve value
if (rain > 0)
numberOfRainyDays = ++rainyDayCount;
else {}
} //end while
System.out.println ("");
// Print highest and lowest temperatures
System.out.println ("The higest temperature was: " + highestTemperature + " Degrees");
System.out.println ("The lowest temperature was: " + lowestTemperature + " Degrees");
// Check for single or multiple days / Rainy days
// Print data accordingly
if (numberOfDays == 1)
System.out.println ("There was " + numberOfDays + " day");
else if (numberOfDays > 1)
System.out.println ("There were " + numberOfDays + " days");
else
{
System.out.println ("No data entered 1");
System.exit(0);
}
if (numberOfRainyDays == 1)
System.out.println ("There was " + numberOfRainyDays + " rainy day");
else if (numberOfRainyDays > 1)
System.out.println ("There were " + numberOfRainyDays + " rainy days");
else
System.out.println ("No Rain Experienced");
System.exit(0);
} //End Method
} // End P05Main
I'm in north adelaide though, and planet shaker eventsnever heard of them...



Perth guy here![]()
russell.cz.cc - coming soon (I promise!)
Canberra guy here. And new around these SitePoint parts as well. Don't let the registration date fool you... I kind of signed up and took a year off![]()
Nacho, the rapid web development platform
http://www.nacho.com
Perth ey! Good to see some 'range' hehe:P
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:
I DO THIS:PHP Code:while (rain >= 0)
{
if (temperature > highestTemperature)
highestTemperature = temperature;
else if (temperature < lowestTemperature)
lowestTemperature = temperature;
else {}
I'm not sure why you had the else{} code, coz well else nothing...thats what that's basically saying.PHP Code:while (rain >= 0) {
if (temperature > highestTemperature) {
highestTemperature = temperature;
} else if (temperature < lowestTemperature) {
lowestTemperature = temperature;
}
}
Anyway, that's enough from me![]()





Well you have to use the curly brackets if you go for anymore than one line of code in your if statement, but if it's just a single line you dont need to bother
hehe, yeah, the else was just in there because it was
not sure why it doesn't work?! I use pcGRASP, thinking of upgrading to JGRASP, but it compiles and runs okay for me...
Wanna pop over to Melbourne and do mine for me too?Originally posted by platinum
You're doing java as well??? argggahhha
You want to pop over to Adelaide and do mine for me? I think i'm going to fail it![]()
[mmj] My magic jigsaw
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Bit Depth Blog · Twitter · Contact me
Neon Javascript Framework Jokes
hehe, mmj, if you're talking to me...well I'm in Melbourne! *YES*! another Melbournian!
what uni do you go to?
Unfortunately, it's a Melbourne companyOriginally posted by mmj
There's quite a lot of Australians here.
In fact, SitePoint is an Australian company.
G'day!But of course, this comes from a person from north of the border
![]()






Originally posted by platinum
more boring than anything else I can image! (apart from iTec)..
![]()
Haha that's great. I don't know of many other sitepointers that are from Melbourne. I'm at Melbourne Uni.Originally posted by chewman
hehe, mmj, if you're talking to me...well I'm in Melbourne! *YES*! another Melbournian!
what uni do you go to?
[mmj] My magic jigsaw
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Bit Depth Blog · Twitter · Contact me
Neon Javascript Framework Jokes
hehe, well you can add me to your listOriginally posted by mmj
Haha that's great. I don't know of many other sitepointers that are from Melbourne. I'm at Melbourne Uni.what course are you doing?
Are you at Melbourne Uni too?
[mmj] My magic jigsaw
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Bit Depth Blog · Twitter · Contact me
Neon Javascript Framework Jokes
Nah, I'm at Monash...but down at the Berwick campus
Bookmarks