ok so this might be really dumb but is there anyway i could have a variable in my texteditor before it compiles to represent a
string. heres what i mean
say that i have a method that works with STrings and the methods it inherits from object
so like Class fooIntegerVersion()
{
Integer gerd= new Integer("1");
System.out(gerd.toString());
}
Class fooByteVersion()
{
Byte gerd= new Byte("1");
System.out(gerd.toString());
}
Class fooStringVersion()
{
String gerd= new String("1");
System.out(gerd.toString());
}
is there anyway i could just make a variable in the
ide represneted by $ that would be intpreted as whatever i had in it.
lets say i said $=String;
Class fooStringVersion()
{
$ gerd= new $("1");
System.out(gerd.to$());
}
is there any way that the IDE would know to put String in where the $ sign is before it compiles?
(Note im not saying this is possible im asking if it is possible and how which idea what class, different idea, ect...)
ty all