can you give me some simple code that will convert the integer to a string ...
coz i have a code but its too lonh like this
(example)
Code:import java.io.*; public class convert { public static void main(String args[]) { BufferedReader woof=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter 3 digits only: "); int num=Integer.parseInt(woof.readLine); if (num == 100) { System.out.println("one hundred") } if (num == 101) { System.out.println("one hundred and one") } and so on ... i dnt know how to use the "String s = stringValueOg (val)" ... and array in java .... so can anyone can give me a simple code of converting




Reply With Quote