Please don't flame me; I am new to Java.
I am trying to make a program that displays a variable as part of a string.
For example.
System.out.println("Book: " + title);
I need to surround the variable title with double quotation marks. When I try to do as my book says (/") I get Syntax errors.
Any ideas?
As always, thank you in advance.
I am trying to make a program that displays a variable as part of a string.
For example.
System.out.println("Book: " + title);
I need to surround the variable title with double quotation marks. When I try to do as my book says (/") I get Syntax errors.
Any ideas?
As always, thank you in advance.
