This content has been marked as final. Show 3 replies
Each Number inherits all methods from Object (see http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html) and I bet Object does come with a method that does what you want.
String str = String.valueOf(ownerName);
Yet another way of doing it is: ownerName.toString().
If you are working in and IDE such as Netbeans or Eclipse, type a period after the object name. Wait a second or so. Eclipse/Netbeans Intellisense will show you a list of functions that object provides that you can choose from. toString() is one of them.