I'm currently taking Python, and I like the way one is able to insert variables into a string without doing
"+ var +" or
" ", var, " "
Example: "We can just go out at {} pm and go to {}.".format(5, "Bob's Burgers");
Is there a way to do it with Java?
Yes. You could do