Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Where to go next?
Index -> Programming, Java -> Java Help
Goto page 1, 2, 3  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Jonny Tight Lips




PostPosted: Fri Jul 29, 2005 1:28 pm   Post subject: Where to go next?

I'm just starting to try and learn Java and I've read the HelloWolrd the Java way totural and I think I got a general understanding of it but I'm not sure where I should be looking next. In turning I would move on to Input from the user and if statments but I'm not sure. If you could suggest some tutorials I would be very greatful. Thx
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Fri Jul 29, 2005 1:42 pm   Post subject: (No subject)

Read up on methods. Methods are the fundamental means by which executable code is organized.

As part of this, understand the difference between static and non-static methods, and static and non-static contexts in general.

Write the additional code that makes the following make sense and do what you'd expect it to:

Java:
public class HelloWorld
{
   public static void main(String[] args)
   {
      sayHelloWorld();

      HelloWorld hw = new HelloWorld();

      hw.sayHelloTo("Bob");
   }
}
rizzix




PostPosted: Fri Jul 29, 2005 1:44 pm   Post subject: (No subject)

Shoot. I was made aware of this problem before. But back then and now recently, I'm currently occupied working on some tutorials. The problem is the tutorials in the Java section is not designed for a programmer completly new to the Java syntax. It assumes you already know the basics. Such a tutorial about the raw basics is missing.

*sigh* If you'd give me a day or two? I'd probably get a couple of them done. Thanks for reminding me though.
wtd




PostPosted: Fri Jul 29, 2005 1:53 pm   Post subject: (No subject)

I'd like to humbly submit this thread as an example of writing to a newbie audience.
[Gandalf]




PostPosted: Fri Jul 29, 2005 2:01 pm   Post subject: (No subject)

Good luck making yours as thourough (sp?) as wtd's Smile.

Also, wtd: sayHelloWorld() would be static, and sayHelloTo() would be a member function (method) of HelloWorld with a string parameter, right?
Spartan_117




PostPosted: Fri Jul 29, 2005 7:12 pm   Post subject: (No subject)

Everyones in love with the HelloWorld app which ticks me off. Ya its usefull for very basics, but what about Images. Loading Images in an Applet is so damn difficult.

ANd wen i open my Applet in a Browser it gives me this:

http://us.share.geocities.com/deville_75/IHATETHIS.bmp

pain in arse. I've been trying to make this applet work for at least 6 months.
wtd




PostPosted: Fri Jul 29, 2005 7:21 pm   Post subject: (No subject)

Spartan_117 wrote:
Everyones in love with the HelloWorld app which ticks me off. Ya its usefull for very basics, but what about Images. Loading Images in an Applet is so damn difficult.


Did you ever stop to think... maybe there's a reason for this?

Working with images is more complicated than working with text, and yet... the language and the basic concepts are the same. When you teach the basics, you want to stick to the concepts, without going off on a long tangent about how to manipulate images.
Spartan_117




PostPosted: Sat Jul 30, 2005 10:52 am   Post subject: (No subject)

Yes thats true, i understand, and the reason for my anger is nothing against HelloWorld, i just took it out on it because im still having a hard time loading images and its been months and i've been on three forums asking for help.
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Sat Jul 30, 2005 1:09 pm   Post subject: (No subject)

Have you tried Google?
Spartan_117




PostPosted: Sat Jul 30, 2005 4:30 pm   Post subject: (No subject)

Ya i hav, i know the code, but On Firefox my applet jus plays music, and on IE it gives me this X at the top left of the applet. I dunno what to do about this
wtd




PostPosted: Sat Jul 30, 2005 4:58 pm   Post subject: (No subject)

Spartan_117 wrote:
Ya i hav, i know the code, but On Firefox my applet jus plays music, and on IE it gives me this X at the top left of the applet. I dunno what to do about this


Perhaps the applet is trying to load an image from the user's hard drive, but that image is not there?
Spartan_117




PostPosted: Sat Jul 30, 2005 7:48 pm   Post subject: (No subject)

thats definitely not the case
i just realized that it doesnt even set the background to black. When i put g.fillRect (...) it doesnt work. THe browser still gives me that X at the top left. of the applet.
rizzix




PostPosted: Sun Jul 31, 2005 10:25 am   Post subject: (No subject)

well thats because ur applet is not loading in your browser.
Spartan_117




PostPosted: Sun Jul 31, 2005 6:33 pm   Post subject: (No subject)

So the applet's not loading? why nott? the class and java files are right there. It doesnt make sense cuz the correct music is playing... very odd indeed. So its loading part of the applet?
rizzix




PostPosted: Mon Aug 01, 2005 1:51 pm   Post subject: (No subject)

eh? your are playing music through the applet?... well if thats the case.. then ur applet is loading... its wierd. well how about a screenshot?
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 3  [ 45 Posts ]
Goto page 1, 2, 3  Next
Jump to:   


Style:  
Search: