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";
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.

Random recommended