Jump to content
Wikibooks The Free Textbook Project

Talk:Java Programming/Understanding a Java Program

Page contents not supported in other languages.
Add topic
From Wikibooks, open books for an open world
Latest comment: 15 years ago by Mattylaws in topic Friendly to Newcomers

In later modules, we can do more advanced enhancements of this basic program:

--djb 18:26, 28 January 2006 (UTC) Reply

Friendly to Newcomers

[edit source ]
Latest comment: 15 years ago 1 comment1 person in discussion

Could this example be a bit confusing to newbies to the language? --Mattylaws (talk) 12:44, 10 March 2010 (UTC) Reply

Questions

[edit source ]

How do you use the distance program in eclipse? It isn't obvious how points can be entered the command prompt seems unresponsive.

error

[edit source ]
Latest comment: 16 years ago 2 comments2 people in discussion
jc@JCMAIN:~/java$ javac Distance.java 
Distance.java:1: 'class' or 'interface' expected
{
^
1 error

- Any ideas? 161.112.83.102 10:40, 7 October 2007 (UTC) Reply

This didn't compile for me until I changed:

...

privatestaticintintValue(Stringdata)
{
returnInteger.parseInt(data);
}
}

To:

privatestaticintintValue(Stringdata)
{
returnjava.lang.Integer.parseInt(data);
}
}

That said I really don't know what I'm doing here, and just got the idea to try that off of some random googling. Should the page be changed, or maybe there's a better fix. --Keithonearth (talk) 19:09, 21 August 2009 (UTC) Reply

AltStyle によって変換されたページ (->オリジナル) /