Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 08-13-2007, 06:36 AM
Member
 
Join Date: Jul 2007
Posts: 23
marco is on a distinguished road
application it is, and i dont know why u are gettin the error sry, i only program in Applets :/
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #22 (permalink)  
Old 08-14-2007, 12:04 AM
Member
 
Join Date: Aug 2007
Posts: 5
Neon Blue is on a distinguished road
just starting
Hi, I overcame some of my "just starting" problems by opening an old Win 2000 laptop because it is compatible with my text and SDK 1.3.

I wrote this for "Hello World", it compiles but returns two statements, one in quotes and one without quotes. i have decided not to troubleshoot it just yet, but to post this code.

public class HelloWorld {
public static void main(String[] arguments){
String line1 = "HelloWorld";
String quote = line1;
System.out.println('\u0022' + quote + '\u0022');
System.out.println("Hello world");
}
}
Bookmark Post in Technorati
Reply With Quote
  #23 (permalink)  
Old 08-14-2007, 12:28 AM
Member
 
Join Date: Aug 2007
Posts: 30
dmacvittie is on a distinguished road
Neon Blue, your code is acting correctly...
The '\u0022' is a quote, so the line
System.out.println('\u0022' + quote + '\u0022');
should output
"HelloWorld"
Then right after that you tell it to output another line...
System.out.println("Hello world");

My guess is that some of this is code form the book you're using and some is code you put in - all cool, it's doing what it's supposed to.

Don.
__________________
Don MacVittie F5 Networks -
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #24 (permalink)  
Old 08-14-2007, 01:25 AM
Member
 
Join Date: Aug 2007
Posts: 30
dmacvittie is on a distinguished road
SpecBailey, I'm not certain - all should go well if you're in the bin directory. It's a long shot, but check the bin directory and make certain that java.exe exists in the directory. If not you will need to reinstall - or check your path to find out which java.exe is actually running and move things to that bin directory (though for an app this simple I'm skeptical that the majority of version differences would hamper you).

Don.
__________________
Don MacVittie F5 Networks -
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Indexing starting with 1 ravian New To Java 4 01-04-2008 02:03 PM
Help, starting with java mathias New To Java 2 08-15-2007 09:15 AM


All times are GMT +3. The time now is 11:24 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org