0
Which type of variable we will use if we have both integers and alphabets in a same 'variable'..?
2 odpowiedzi
+ 3
String, or, singularly, char. The collective term is alphanumeric.
0
you'd better use this -
class main
{
public static void main(String arcs[])
{
Variable variable = new Variable();
variable.integer = 11;
variable.string = "s";
}
}
public class Variable
{
int integer;
String string;
public Variable ()
{
this.integer = 0;
this.string = "";
}
}