Writing Java Classes, Using Case Studies

A Member? Please Login  
type your username and password to login
Date: October 15, 2008, 02:40 AM
250008 members and 148661 Topics
Latest Member: Abayomin70
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Programming  |  Writing Java Classes, Using Case Studies
Pages: (1) Go Down Send this topic Notify of replies
Author Topic: Writing Java Classes, Using Case Studies  (Read 252 views)
gbengaijot (m)
Writing Java Classes, Using Case Studies
« on: February 20, 2007, 09:10 PM »

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)
Re: Writing Java Classes, Using Case Studies:
« #1 on: February 20, 2007, 10:28 PM »

I am waiting for contributions from all quaters ooooo

Where are the programmers in da house
gbengaijot (m)
Re: Writing Java Classes, Using Case Studies:
« #2 on: February 21, 2007, 12:13 AM »

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
Re: Writing Java Classes, Using Case Studies
« #3 on: April 14, 2007, 08:55 PM »

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)
Re: Writing Java Classes, Using Case Studies
« #4 on: April 15, 2007, 10:42 PM »

@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.



 My Web Pages Are Distorted On Different Display Screen. What's The Way Out  Java And Oracle Which Is Best?  This Is Wonderful  Page 2
Pages: (1) Go Up Send Topic to Friend by E-mail Reply 
Google
 
Web www.nairaland.com
Sections: TV/Movies (2) Music/Radio (2) Celebrities Job Talk Jobs/Vacancies (2) Career Talk Romance Books Politics Sports Fashion Travel
Health Schooling Religion General(2) Business Webmaster Programming Computers Phones Cars & Trucks

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.