|
gbengaijot (m)
|
Ok, After understanding nstance variables, class variables, clas methods, comments, e.t.c and you want to write a class. Is there anyone in the house who can teach writing Java classes using simple case studies to prime our young brains into becoming a matured programmer.
I will appreciate java programmers in the house giving us tutorials on writing Java classes using case studies. SBU career, Mimoh mi, smartsoft, codec and others, where are you?,
Help us out.
|
|
|
|
|
|
gbengaijot (m)
|
I am waiting for contributions from all quaters ooooo
Where are the programmers in da house
|
|
|
|
|
|
gbengaijot (m)
|
lets assume i want to write a java class which basically reques that a user input words once at a time. Lets say , that if after all the words have been inputted, the user should then enter "£" when the next word is requested. The method should then retun the average length of the words that were inputted ( not including the "£").
Les assume that the user input valid words and at least one word is inputted.
|
|
|
|
|
|
fallguy
|
what a dead thread, ur the only poster [all 3 ] well as for ur problem i think u'D use java's IO package, get the input from the <u>command line</u> and the special character the dollar sign as a signal for the program to quit. HOPE THIS HELPS.
|
|
|
|
|
|
mimoh_mi (m)
|
@gbengaijot
Never mind, sorry, I have been out of this forum for a while. Basically, in an OOP perspetive, classes are used to represent a unique object. Say you have a car, the car has attributes like colour, wheels, gear, seats etc so these attribute are represented as variables. Then the car does some actions like increase or decrease speed, stop or moving. The actions are represented by methods. So, attributes ------> variables (nouns) actions ---------------> methods (Verbs)
Don't wory will work on this for you. Keep it up Thanks.
|
|
|
|
|
|