Köll & Sam Classroom Blog
Question posted by: Dököll
( Moderator)
on
September 5th, 2007 11:20 PM
Hello Dudes and Dudettes!
I am excited to announce I am embarking on a new Journey, JAVA baby. This is a new arena for me, hope I survive and able to muscle through it.
Will post articles within three months from now.
Wish me luck!
Köll
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
|
|
September 6th, 2007 12:40 AM
# 2
|
Re: Köll & Sam Classroom Blog
Nice. Java's a fun language.
|
|
September 6th, 2007 04:48 AM
# 3
|
Re: Köll & Sam Classroom Blog
Wishing you all the best for Java.
|
|
September 6th, 2007 06:30 AM
# 4
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by Dököll
...
Wish me luck!
..
|
You'll need it.
|
|
September 6th, 2007 06:42 AM
# 5
|
Re: Köll & Sam Classroom Blog
poor guy ...
kind regards,
Jos ;-)
|
|
September 6th, 2007 11:07 AM
# 6
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by Dököll
Hello Dudes and Dudettes!
I am excited to announce I am embarking on a new Journey, JAVA baby. This is a new arena for me, hope I survive and able to muscle through it.
Will post articles within three months from now.
Wish me luck!
Köll
|
I've heard of JAVA Beans, but not JAVA Baby! But now, Mary can have another Mod in Java! Tonight is my first Java class also. Got to keep up with you kids!
|
|
September 6th, 2007 12:54 PM
# 7
|
Re: Köll & Sam Classroom Blog
One of the unis my son may go to has JAVA as the fundamental language of choice so I may take it up (time permitting) if he goes there.
Prolly not for a year or two though ;)
Good luck anyway Dököll :)
|
|
September 6th, 2007 01:45 PM
# 8
|
Re: Köll & Sam Classroom Blog
Remember; for those late night classes, nothing keeps you up and attentive like JAVA. Or Tea.
|
|
September 6th, 2007 07:15 PM
# 9
|
Re: Köll & Sam Classroom Blog
It's too bad almost nobody knows about Objective C anymore (except for those
Apple folks). Objective C stole^H^H^H^H^Hborrowed a lot from SmallTalk and
Apple (NextStep/OpenStep) added quite a large library to Objective C.
If you've worked with that library you can see that Java isn't a very original work.
Java's core classes stole^H^H^H^H^H borrowed a lot from NextStep/OpenStep.
And they deleted a very important fun feature from the language: runtime type
checking. Sun must've judged it a too dangerous feature ... Introspection just
doesn't make it compared to Objective C's rttc.
kind regards,
Jos
|
|
September 7th, 2007 01:47 AM
# 10
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by
Re: My First Java Course: Wish me luck:-)
Nice. Java's a fun language.
|
So I've heard, we shall see...
Quote:
Originally Posted by
Re: My First Java Course: Wish me luck:-)
Wishing you all the best for Java.
|
Thanks much!
Quote:
Originally Posted by
Originally Posted by Dököll...Wish me luck!..
You'll need it.
|
I think C ++ scared me enough, I am ready it seems...
Quote:
Originally Posted by
poor guy ...
kind regards,
Jos ;-)
|
:-)
Quote:
Originally Posted by
I've heard of JAVA Beans, but not JAVA Baby! But now, Mary can have another Mod in Java! Tonight is my first Java class also. Got to keep up with you kids!
|
wishing you luck then:-)
my professor's a monster, she says she'll have no mercy, I think that about sums the fact I'll need to truly stay awake for this one.
Quote:
Originally Posted by
Re: My First Java Course: Wish me luck:-)
One of the unis my son may go to has JAVA as the fundamental language of choice so I may take it up (time permitting) if he goes there.
Prolly not for a year or two though ;)
Good luck anyway Dököll :)
|
Much appreciated...
When the time comes, good luck with it:-)
Quote:
Originally Posted by
Re: My First Java Course: Wish me luck:-)
Remember; for those late night classes, nothing keeps you up and attentive like JAVA. Or Tea.
|
My wife juiced me up today, with tea though, berries and so on...As weird as it sounds, I think I need a better chair, a chair truly uncomfortable though:-) And that's the weird part, I fall asleep in my current one, too comfortable, I need steel, I think, cold...
...weird...but I think that might help keep me awake. Which is very important because I am certain I'll have my nose in it late, cannot do much here in the afternoon.
So yeah! I am prepared, also an oversized mug should do the trick:-)
|
|
September 7th, 2007 01:55 AM
# 11
|
Re: Köll & Sam Classroom Blog
My prof seems better than I expected. She did a really good job and is very organized. I just need to sit next to the projector screen: I couldn't see a thing from across the room. What book are you using? Mine is Shelly, Chashman's Java Programming (Comprehensive). Good luck! --Sam
|
|
September 7th, 2007 03:28 AM
# 12
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by SammyB
My prof seems better than I expected. She did a really good job and is very organized. I just need to sit next to the projector screen: I couldn't see a thing from across the room. What book are you using? Mine is Shelly, Chashman's Java Programming (Comprehensive). Good luck! --Sam
|
Shelly makes good books, mine's David J. Barnes and Michael Kölling, interesting last name:-) Book's name is Objects First with Java, it's an introduction to it so you may have a stronger version. I do sit right out front, I like to listen and take notes at the same time...thanks Sam!
Have a great week-end...
|
|
September 7th, 2007 04:02 AM
# 13
|
Re: Köll & Sam Classroom Blog
You should look into Big Java. It's the book I learned Java on, and it's awesome.
|
|
September 7th, 2007 01:54 PM
# 14
|
Re: Köll & Sam Classroom Blog
>you may have a stronger version
It's for two terms
>Big Java
I was hoping for Little Java! BTW, Ganon, we can post our homework on the Java board and you'll do it, right?
|
|
September 7th, 2007 02:08 PM
# 15
|
Re: Köll & Sam Classroom Blog
The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.
Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.
Then when you are ready post a new question in this thread.
MODERATOR
|
|
September 9th, 2007 03:10 AM
# 16
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by Dököll
Shelly makes good books, mine's David J. Barnes and Michael Kölling, interesting last name:-) Book's name is Objects First with Java, it's an introduction to it so you may have a stronger version. I do sit right out front, I like to listen and take notes at the same time...thanks Sam!
Have a great week-end...
|
You guys are lucky... I had to learn Java from a book written in Icelandic!... By my teacher!!
No wonder I can't remember a word of it :P
|
|
September 9th, 2007 06:02 PM
# 17
|
Re: Köll & Sam Classroom Blog
Ignoring Gannon, like the rest of our posters:o)>>
Quote:
Originally Posted by Atli
You guys are lucky... I had to learn Java from a book written in Icelandic!... By my teacher!!
No wonder I can't remember a word of it :P
|
So, the course was called Kaffi?
|
|
September 9th, 2007 06:21 PM
# 18
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by SammyB
Ignoring Gannon, like the rest of our posters:o)>>
So, the course was called Kaffi?
|
lol no. It was called "Tölvuforritun fyrir byrjendur" or something like that... (A cookie for the first one to translate that! :)
No, sadly there was no coffie :(
|
|
September 10th, 2007 01:35 AM
# 19
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by Atli
lol no. It was called "Tölvuforritun fyrir byrjendur" or something like that... (A cookie for the first one to translate that! :)
No, sadly there was no coffie :(
|
I think I like your professor. InterTran gives it as "Computer program pay lip service to introductory." Which I guess means "Computer Programming for Smarties"
|
|
September 10th, 2007 03:55 AM
# 20
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by SammyB
I think I like your professor. InterTran gives it as "Computer program pay lip service to introductory." Which I guess means "Computer Programming for Smarties"
|
Ok that's hilarious! :D
"fyrir" means "for"... how on earth do they manage to translate that to 'pay lip service'? :)
|
|
September 23rd, 2007 02:23 AM
# 21
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by Atli
You guys are lucky... I had to learn Java from a book written in Icelandic!... By my teacher!!
No wonder I can't remember a word of it :P
|
Well, listen to this, even with the use of a certain software, specific to the book itself, I still manage to not understand, or be able to skillfully modify the code given...
I am in up to my wrist, thus far...
|
|
September 23rd, 2007 02:34 AM
# 22
|
Re: Köll & Sam Classroom Blog
What software are they having you use?
|
|
September 23rd, 2007 02:59 AM
# 23
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by Ganon11
What software are they having you use?
|
We're using a software by BlueJ, can be seen at BlueJ.com.
Ganon11, Sam, Lab 3 was still terrifying, I requested help and still did not get it. Thing is when the professor stood right by me an exaplained what I was doing wrong, I tried again and succeeded, the moment I jumped to something else an attempted to try on my own, no way, not gonna happen:-)
BlueJ allowed me to modify code already wirtten, which did at one point give me a sense I had an unfair advantage, until Lab 3:-)
I think what must happen though, and I will post to our wonderful Java forum, is my creative juices must start flowing, light buld must come on, it did in VB...
Hope to see you in the forum, I have a feeling talking/writing about it also helps.
Quote:
Originally Posted by
You should look into Big Java. It's the book I learned Java on, and it's awesome.
|
I found a copy of Java for dummies, keeping it close. Will also give Big Java a try, need all teh help I can get, it seems:-)
Quote:
Originally Posted by
Any additional advice you have, shout it out...
Good luck and kudos to everyone, by the way, learning and mastering Java.
My advice, of course easier given to others than myself:-) I think Java having an object oriented style also should make it not so much of an animal...
|
|
|
September 23rd, 2007 12:59 PM
# 24
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by Dököll
I think what must happen though, and I will post to our wonderful Java forum, is my creative juices must start flowing, light buld must come on
|
Arrgghh! Oh no! Run away! Run away!
kind regards,
Jos ;-)
|
|
September 23rd, 2007 02:11 PM
# 25
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by JosAH
Arrgghh! Oh no! Run away! Run away!
kind regards,
Jos ;-)
|
Not another n00b...If you ask us about Rational numbers, or an Inventory, so help us...
XD
|
|
September 23rd, 2007 05:40 PM
# 26
|
Re: Köll & Sam Classroom Blog
Man, I'm thankful: we're still doing "Hello, World" splash screens! But, in this next chapter we deal with the "The Body Mass Index Counter!" Definitely a step up from "Hello, World!" Swing Components, Labels, and (dangerous) math! Ohh, Ahh!
|
|
September 25th, 2007 08:20 AM
# 27
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by SammyB
Man, I'm thankful: we're still doing "Hello, World" splash screens! But, in this next chapter we deal with the "The Body Mass Index Counter!" Definitely a step up from "Hello, World!" Swing Components, Labels, and (dangerous) math! Ohh, Ahh!
|
Just be scientific and mathematical and impress the rest of the class: multiply
everything by Math.PI.
kind regards,
Jos ;-)
|
|
September 27th, 2007 05:06 AM
# 28
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by JosAH
Arrgghh! Oh no! Run away! Run away!
kind regards,
Jos ;-)
|
My lab partner tonight said, I like you and all but, I'm out of here...You tell me how you made out, grinning...
I dont' think I'll ever see her again:-)
Second time taking it...
|
|
September 27th, 2007 12:37 PM
# 29
|
Re: Köll & Sam Classroom Blog
Should you be worried?
Do you have that effect generally with girls?
(:D)
|
|
September 27th, 2007 10:59 PM
# 30
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by NeoPa
Should you be worried?
Do you have that effect generally with girls?
(:D)
|
Well I did also need a shower that night:-)
I complainned t my colleague at work today, poor woman. Stayed up late last night venturing about each sequence of the code; of course you know this means to no avail.
But I have a feeling that special light bulb will in fact come on...
At it again 2 nite:-)
It's almost like preparing to go in the dungeon, truly amazing...
|
|
September 27th, 2007 11:36 PM
# 31
|
Re: Köll & Sam Classroom Blog
|
|
September 28th, 2007 07:31 AM
# 32
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by Dököll
|
"Class or interface expected error"
A right curly brace too many in the middle of the code; keep that one in mind.
The line number from the error diagnostic is the give away.
kind regards,
Jos
|
|
September 29th, 2007 02:16 AM
# 33
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by JosAH
"Class or interface expected error"
A right curly brace too many in the middle of the code; keep that one in mind.
The line number from the error diagnostic is the give away.
kind regards,
Jos
|
Here's one that's not a give-away. I thought that it was going to keep me up all night, but it all of the sudden just went away. The error message was "C:\Documents and Settings\Sam\My Documents\CSD224\Homework\Chapter3\Assignments\Kil owattApplet.java:12: KilowattApplet is not abstract and does not override abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener
public class KilowattApplet extends Applet implements ActionListener"
Code was
Code: ( text )
// Chapter: 3, Programming Assignment 6 // Programmer: Sam Barrett // Date: 24 Sep 2007 // Filename: KilowattApplet.java // Program: Applet // Purpose: Calculate Annual Appliance Running Cost import java.applet.*; import java.awt.*; import java.awt.event.*; public class KilowattApplet extends Applet implements ActionListener { public void init() { this.lblWelcome = new Label("Welcome to the Appliance Energy Calculator"); this.lblCost = new Label("Please enter the cost per kilowatt-hour in cents: "); this.txtCost = new TextField(10); this.lblHours = new Label("Please enter the kilowatt-hours consumed: "); this.txtHours = new TextField(10); this.btnCalculate = new Button("Calculate"); this.lblRunningCost = new Label("Click the Calculate Button to display the average energy cost "); setForeground(Color.black); // Never use Purple, some of us cannot see the text add(this.lblWelcome); add(this.lblCost); add(this.txtCost); add(this.lblHours); add(this.txtHours); add(this.btnCalculate); this.btnCalculate.addActionListener(this); add(this.lblRunningCost); } public void actionPreformed(ActionEvent e) { double dCost = Double.parseDouble(this.txtCost.getText()); double dHours = Double.parseDouble(this.txtHours.getText()); double dAverage = dCost * dHours; this.lblRunningCost.setText("The average annual cost to operate this appliance is $" + Math.round(dAverage*100)/100D); } // Components private Label lblWelcome; private Label lblCost; private TextField txtCost; private Label lblHours; private TextField txtHours; private Button btnCalculate; private Label lblRunningCost; }
The funny thing was that someone else in class had the same error and it took us as a class at least 30 minutes to find the mistake!
|
|
September 29th, 2007 07:02 AM
# 34
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by SammyB
Here's one that's not a give-away. I thought that it was going to keep me up all night, but it all of the sudden just went away. The error message was "C:\Documents and Settings\Sam\My Documents\CSD224\Homework\Chapter3\Assignments\Kil owattApplet.java:12: KilowattApplet is not abstract and does not override abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener
public class KilowattApplet extends Applet implements ActionListener"
|
I've seen that error diagnostic more than often and always I had misspelled the
method name 'actionPerformed'. I always tend to spell it with a leading capital A.
Dunno why; my fingers seem to like that ;-)
kind regards,
Jos
|
|
September 29th, 2007 08:02 AM
# 35
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by JosAH
I've seen that error diagnostic more than often and always I had misspelled the
method name 'actionPerformed'. I always tend to spell it with a leading capital A.
Dunno why; my fingers seem to like that ;-)
kind regards,
Jos
|
I always forgot the first r and wrote it as actionPeformed
|
|
September 29th, 2007 02:42 PM
# 36
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by r035198x
I always forgot the first r and wrote it as actionPeformed
|
The one I hate most is the PropertyChangeListener with its propertChange method;
it is called when the bound property has change d and I alway type those
darn things as 'PropertyChangedListener' or 'propertyChanged' with a parameter
type of 'PropertyChangedEvent'. I don't even check anymore: when I see the
compiler whining again about classes not being declared abstract and yaddayadda,
I simply remove the 'd' from the methods and inner classes ...
kind regards,
Jos
|
|
September 29th, 2007 11:45 PM
# 37
|
Re: Köll & Sam Classroom Blog
I guess that I should have realized that you-all would see it at once. It's one of those error messages that is so cryptic that you remember it. The funny thing was that I had no clue, but I had made some mistakes, so I retyped the code at the end and of course I was mystified as to why the message went away.
|
|
September 30th, 2007 09:17 AM
# 38
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by SammyB
I guess that I should have realized that you-all would see it at once. It's one of those error messages that is so cryptic that you remember it. The funny thing was that I had no clue, but I had made some mistakes, so I retyped the code at the end and of course I was mystified as to why the message went away.
|
It's one of the compiler messages that are not tied to a specific line where some
syntax mistake should be. There is no syntactic mistake in that code; it was
just the fact that you stated that your class implements the ActionListener interface
which it effectively doesn't because there is no 'actionPerformed' method defined;
the class isn't defined to be abstract either so all the compiler can tell you is what
I just wrote. It is a semantic mistake which the compiler checks for you.
kind regards,
Jos
|
|
October 1st, 2007 04:13 AM
# 39
|
Re: Köll & Sam Classroom Blog
Quote:
Originally Posted by JosAH
"Class or interface expected error"
A right curly brace too many in the middle of the code; keep that one in mind.
The line number from the error diagnostic is the give away.
kind regards,
Jos
|
That sounds very familiar...just got word through Java forum on this:-)
Will keep this and any othe | |