N
noob
Gast
Hi
würde gerne ein long wert in ein String umwandeln, aber es gelingt mir nich
In der Api hab ich noch das gefunden
public static String valueOf(long l)
Returns the string representation of the long argument.
The representation is exactly the one returned by the Long.toString method of one argument.
Doch wie benutz ich es ?
Bei
long l=2;
public static String s.valueof(l);
kommt auch ein Fehler
würde gerne ein long wert in ein String umwandeln, aber es gelingt mir nich
Code:
class Test{
public static void main(String[] args)
{
long x=2;
String s;
s.toString(x);
=> Fehler
}
}
public static String valueOf(long l)
Returns the string representation of the long argument.
The representation is exactly the one returned by the Long.toString method of one argument.
Doch wie benutz ich es ?
Bei
long l=2;
public static String s.valueof(l);
kommt auch ein Fehler