• Post Reply Bookmark Topic Watch Topic
  • New Topic

edit method  RSS feed

 
diaa baraka
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you explain how to implement a method that edit an element in an array of object(in phonebook project)?
 
Campbell Ritchie
Marshal
Posts: 55772
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you think you would implement it? We do not simply hand out solutions; we want to see what you think first.

Actually you should not have a method which edits anything in anything. You should have a method which edits something, and another method which finds it.
 
Tony Docherty
Bartender
Posts: 3268
82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In future please don't start new threads for the same basic problem, use your original thread.

I suggest you read a basic tutorial on using arrays ie http://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!