0
Output error???
public class Program { public static void main(String[] args) { char angka='1': System.out.println("angka"); } }
1 Réponse
+ 1
in your code
char angka='1';
Is declaring a charecter type variable and assigning '1';
Now angka is variable but "angka" is a string not variable..
You should write like
System.out.println(angka);
You put : instead of ; in char angka='1': //error
Use semi colon ; not colon : after statements declarations..