How can I convert a random int into a string?
Random value = new Random();
int x = value.nextInt();
// How would I go about converting the value of variable x from a random integer into a String? Thanks
1. This is a java desktop forum. If you're new to Java, post your questions at 
2. Use Integer.toString(int) static method
3. Use "" + myInteger
I'm sorry. I thought I was in the right forum. Thanks for the help though and the link.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.