Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

GetObject

Whats the best way to get all the object like currency, telephone, email, birthday and so-on.
0
rajah_mohammed
Asked:
rajah_mohammed
  • 2
1 Solution
 
CEHJCommented:
From where?
0
 
rajah_mohammedAuthor Commented:
The user will input anything he likes whats the best approach to get those datas do I like to set everything for eact type?
0
 
CEHJCommented:
Best thing to do is to create an object and then fill it:


Person p = new Person();
// prompt the user then
p.setEmail(in.readLine());
// prompt the user then
p.setBirthdate(dateFormat.parse(in.readLine()));

etc.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now