Computer Science, asked by farhaalrafa, 11 months ago

how many ways you can set values for a string?

Answers

Answered by thegreat33
0

Answer:

There are three ways to create strings in Java.

...

However java. lang. String indeed provides 13 different types of constructors using which String Objects can be initialized.

You can use the StringBuilder Class.

Or you can use String class.

You can use String.format method.

Or you can use . toString method to create strings.


farhaalrafa: its for c programme
thegreat33: ya so...
Similar questions