java how to declare string code example Example: declare String in java String stringName = "your string content";