Is it Posible to create an object with the contentof a variable as name?
like:
Public static void createNewObject(String c){
Object c = newObject();
}
MY compiler wouldn't let me do this because the variable c is already declared.
i have tried to do... Object c.toString() = new Object
but no luck.
Any ideas?
Create an object with the content of a variable as name. Is it Posible? Java.?
hmmm possibly
Object [c].toString()= New Object
im not 100% sure, im still learning java %26gt;.%26lt;
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment