• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to convert String Number Input into Real Number Output  RSS feed

 
Hitesh Patel Patel
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Thanks - Hitesh
 
Hitesh Patel Patel
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I forget to add that a program should not use any in-build java function.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then you are pretty much out of luck. length() is a build it function. print() is a build in function. toString (which you are implicitly calling with your string concatenation) is built in.
 
Hitesh Patel Patel
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry Fred I meant to say any in-build function that allows conversation from string to int or float.
Thanks for pointing it out.
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

When you ran you program, did it work? I recommend trying it with small numbers first -- single digit, then two digit, etc. -- to see what you are doing wrong.

Henry
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!