String Variable:
As well as storing number values, variables can hold text. You can store just one character, or
lots of characters. To store just one character, the char variable is used. Usually, though, you'll
want to store more than one character. To do so, you need the string variable type.
Start a new project for this by clicking File > New Project from the menu bar at the top of
NetBeans. When the New Project dialogue box appears, make sure Java and Java Application
are selected:
lots of characters. To store just one character, the char variable is used. Usually, though, you'll
want to store more than one character. To do so, you need the string variable type.
Start a new project for this by clicking File > New Project from the menu bar at the top of
NetBeans. When the New Project dialogue box appears, make sure Java and Java Application
are selected: