For the sake of simplicity, I have written a very simple method of what I am attempting to do. I want to send this method a string, then make a new variable whose name will BE the string. I know this is completely invalid with the current way I am doing it, but HOW can I do this? (I understand that this method looks completely stupid and looks like I have no idea what I'm doing, but I do. My program I am writing really needs this capability. PLEASE help.)
public int whatever(String s)
{
int s = "hello";
return s;
}