current position:Home>Create a string variable

Create a string variable

2022-02-02 21:41:28 CSDN Q & A

Create a String Variable , And give it a value ( Such as abcdrfg). And then use System.out.println() Show this variable




Refer to the answer 1:

String str = "abcdrfg";
System.out.println(str);
notes : In this case, I suggest you take a look at java Basics




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202022141262169.html

Random recommended