# Printing to Console

Sometimes the game or application might not work the way you expect it to or you want to write something to the console for logging purposes. Outside of debugging the application, you can use System.out.println() to write your message. Lookout for your messages in the “logcat” window at the bottom of Android Studio:

System.out.println is helpful when you want to fix bugs in code, but your user (the person using the app) can’t see text printed with this function. But we can do this with toasts! A toast is a quick, small text that we make visible to the user. Here’s how to make a toast:

Toast.makeText(this, "Text we want to show", Toast.LENGTH_SHORT).show()