String username = "PrinceNelson"; System.out.println("Your username is: " + username); int balance = 10000; String message = "Your balance is: " + balance; System.out.println(message); public class Zoo { public static void main(String[] args){ int animals = 12; String species = "zebra"; System.out.println("Our zoo has " + animals+" "+ species+"s!"); } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter