The moose likes Beginning Java and the fly likes how do arrays work with oop Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how do arrays work with oop" Watch "how do arrays work with oop" New topic

how do arrays work with oop

Ferny Canturini

Joined: Sep 17, 2004
Posts: 1
I have an assignment that requires me to create an array of three objects
Each Object has five varreables
I am supposed to ask the user to input the varreables and check them for right type and range. Then I am supposed to output the data back to the screen naming it object1 with its five varreables
object 2 with its five varreables
object 3 with its five varreables

all of this is supposed to be simplified by using the try-catch commands.
I am using the Java intro to computer science & programming third edition.
please help the newby?
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9056
Since this is a Java question and is not about the Javaranch website, I am moving it to Java in General(beginner).

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

What are the types and ranges?
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Welcome to JavaRanch, Ferny Canturini!

Here is a list of free on-line Java tutorials and books that I have found useful:
  • Sun's Java Tutorial
  • Introduction to Computer Science using Java by Bradley Kjell
  • Introduction to Programming Using Java by David J. Eck
  • Dick Baldwin's Java Programming Tutorials
  • Interactive Programming In Java by Lynn Andrea Stein
  • Bruce Eckel's Thinking In Java
  • JavaRanch's own Campfire Stories
  • Allen B. Downey's How To Think Like A Computer Scientist

  • In Eck's material, you might like to take a look at chapter 8, which covers arrays. Also, you might like to take a look at chapter 46 and some of the subsequent chapters in Kjell's material, where arrays are also covered.

    [How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
    I agree. Here's the link:
    subject: how do arrays work with oop
    It's not a secret anymore!