how can i type caset paint into string in javafx code example Example: int to string java int i=10; String s=String.valueOf(i);//Now it will return "10"