Click here to Skip to main content
15,888,610 members
Home / Discussions / Java
   

Java

 
QuestionError Diplaying TIF Image in Applet Pin
alpeshkhunt17-Nov-08 23:45
alpeshkhunt17-Nov-08 23:45 
AnswerRe: Error Diplaying TIF Image in Applet Pin
toxcct18-Nov-08 1:25
toxcct18-Nov-08 1:25 
QuestionError Diplaying TIFF in Applet through JSP Pin
riteshsv17-Nov-08 23:37
riteshsv17-Nov-08 23:37 
QuestionCreating Vectors Pin
sudany_zool14-Nov-08 23:01
sudany_zool14-Nov-08 23:01 
AnswerRe: Creating Vectors Pin
toxcct16-Nov-08 21:42
toxcct16-Nov-08 21:42 
QuestionHow do i go about doing this Pin
nothingfights13-Nov-08 8:20
nothingfights13-Nov-08 8:20 
AnswerRe: How do i go about doing this Pin
toxcct13-Nov-08 21:46
toxcct13-Nov-08 21:46 
AnswerRe: How do i go about doing this Pin
Naruki3-Dec-08 17:15
Naruki3-Dec-08 17:15 
I would start by creating a text file named after the class you are supposed to create, but with the appropriate extension for a source code file.

We will call this the source code file.

Inside that file, I would declare a class using the standard class declaration syntax, which you can find if you look at any Java HelloWorld program.

Inside that declaration, I would declare 4 methods (or 1 constructor and 3 methods, if you prefer) using standard constructor/method declaration syntax. Again, find a HelloWorld program. Better still, see the last 4 lines of your question, where you have everything but the braces {}.

You would also like to have at least one member variable (the property), which you can name Harvey. Harvey, I think you will find, works better than Fred. But you can call it Fred if you must. Never call it Farqhuat, because people will laugh at you.

The constructor should ponder the existence of itself, asking such things as "Why am I here?", "Who made me?", "Of what use am I?", and "Does peanut butter always have to have jelly to make a good sandwich?" You should not code any of that, but it must be implied. See Webster's Dictionary for an example of implying.

The setter method should ideally set something, and the getter method would, in a perfect world, get that thing. It's up to you to make the world perfect.

The test method, on the other hand, should not lie about the contents unless it is a Tuesday.
Question[Message Deleted] Pin
Saturday3AM12-Nov-08 9:47
Saturday3AM12-Nov-08 9:47 
QuestionPolygon Union Pin
bangbangbogi9-Nov-08 19:24
bangbangbogi9-Nov-08 19:24 
Question[Message Deleted] Pin
trump1016-Nov-08 11:47
trump1016-Nov-08 11:47 
AnswerRe: Help with java programming Pin
toxcct6-Nov-08 21:47
toxcct6-Nov-08 21:47 
GeneralRe: Help with java programming Pin
TannerB7-Nov-08 8:40
TannerB7-Nov-08 8:40 
GeneralRe: Help with java programming Pin
toxcct8-Nov-08 0:03
toxcct8-Nov-08 0:03 
GeneralRe: Help with java programming Pin
TannerB8-Nov-08 7:46
TannerB8-Nov-08 7:46 
GeneralRe: Help with java programming Pin
HosamAly19-Nov-08 6:23
HosamAly19-Nov-08 6:23 
QuestionNeed a tad of help [modified] Pin
TannerB3-Nov-08 8:43
TannerB3-Nov-08 8:43 
Questionexe file Pin
sunil_jvfrm1-Nov-08 1:55
sunil_jvfrm1-Nov-08 1:55 
AnswerRe: exe file Pin
toxcct1-Nov-08 3:52
toxcct1-Nov-08 3:52 
AnswerRe: exe file Pin
jrsk1-Nov-08 23:20
jrsk1-Nov-08 23:20 
AnswerRe: exe file Pin
lixiqiang4-Nov-08 20:24
lixiqiang4-Nov-08 20:24 
Questionproject doubt Pin
ramakrishnudu31-Oct-08 8:29
ramakrishnudu31-Oct-08 8:29 
QuestionSet Represntation, please help !!!!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
sudany_zool29-Oct-08 16:19
sudany_zool29-Oct-08 16:19 
AnswerRe: Set Represntation, please help !!!!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
daniel_at_work2-Nov-08 22:21
daniel_at_work2-Nov-08 22:21 
QuestionHow to find the coordinates of a JList item Pin
nkadivar29-Oct-08 11:50
nkadivar29-Oct-08 11:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.