#(newbie) converting integers to string describing expanded format with expandNumber()
20 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @vestal sand! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
i mean, you just described your input and output types
what are you stuck on in the header?
I do not know how to use expandNumber(), I do not know how to get the output. this is my second week of java
...call it?
or do you mean implementing it?
you aren't clearly describing your issue at all
i do not know how to go from integer to expanded form in string
i don't know what implenting means sorry :c
write the process out in words first, then do it in java afterwards
int alphabet-245;
alphabet=Help.expandNumber(alphabet);
System.out.println("This is 245 in words: "+alphabet);
} private static int expandNumber(int abcbig){ return output; }
This message has been formatted automatically. You can disable this using /preferences.
int alphabet-245;
alphabet=Help.expandNumber(alphabet);
System.out.println("This is 245 in words: "+alphabet);
}
private static int expandNumber(int abcbig){
return output;
}
int alphabet=245**
are tou trying to print integer as String?
I think he wants the spelt out words of the numbers, I might be wrong but that's what I think
Wait so you need a method to convert a int describing the number like “four hundred”
Yes
Yes