Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int a = 10;
- int b = 20;
- // Tedious string concatenation.
- System.out.println("a: " + a + " b: " + b);
- // Output using string formatting.
- System.out.printf("a: %d b: %d\n", a, b);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement