Android Studio won’t print using variable “Int”

Try this:

System.out.println(myInt);

Note that myInt does not come with "" here! What you are doing is actually printing the String “myInt”. But if you want to print the value of the variable myInt, just put myInt without "".

Leave a Comment