This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how do arrays work with oop

 
Ferny Canturini
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 9059
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since this is a Java question and is not about the Javaranch website, I am moving it to Java in General(beginner).
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are the types and ranges?
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic