+ 6

Can someone please explain the entire meaning of a string function?

18th May 2017, 9:09 AM
Iwan
Iwan - avatar
5 Respuestas
+ 3
Hi @Iwan, String is not a function. String is a data type, this means that some data of type string is an abstract representation of a the text in your program. For example, if I want to ask the name of the user, I should store the name in a variable of type "string". An example in Java: String name = "Iwan"; System.out.println(name); Outputs: Iwan
18th May 2017, 9:17 AM
Jmse
+ 5
string is "Object" in java 😑
18th May 2017, 10:28 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 3
string isn't a function. It is a datatype. String is nothing but a collection of characters. It is a data type in few of the programing languages and it isn't a datatype in language like C.
18th May 2017, 9:20 AM
Vishnu ks
Vishnu ks - avatar
+ 3
A 'String' is simply an array of characters. A word or a sentence is a String. One letter or symbol is a 'char'.
18th May 2017, 11:31 AM
STAPS Guru
STAPS Guru - avatar
+ 2
String is a....class....
18th May 2017, 4:38 PM
Aakash Khurana
Aakash Khurana - avatar