2 Replies - 336 Views - Last Post: 11 August 2009 - 10:48 AM Rate Topic: -----

#1 pedro16  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 10-August 09

java program that computes the inputed number in an array?

Posted 10 August 2009 - 11:08 PM

can anyone help m with making a program were it will compute only the number in an array?

example: if i inputted A1B2C3, the answer would be 6.
Is This A Good Question/Topic? 0
  • +

Replies To: java program that computes the inputed number in an array?

#2 mostyfriedman  Icon User is offline

  • The Algorithmi
  • member icon

Reputation: 727
  • View blog
  • Posts: 4,473
  • Joined: 24-October 08

Re: java program that computes the inputed number in an array?

Posted 10 August 2009 - 11:09 PM

show us your work first

[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

#3 computerfox  Icon User is offline

  • straight vegetarian kid

Reputation: 50
  • View blog
  • Posts: 3,772
  • Joined: 29-January 09

Re: java program that computes the inputed number in an array?

Posted 11 August 2009 - 10:48 AM

[rules][/rules]

but here's a clue: you would go through the string and check if it's an int. if it is you would add it to a counter. that's your hint. we do not do your work for you here.

This post has been edited by computerfox: 11 August 2009 - 10:49 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1