answersLogoWhite

0

A string is, by definition, a character array. No conversion is required.

User Avatar

Nedra O'Kon

Lvl 10
2y ago

What else can I help you with?

Related Questions

How do you convert a string into a character array?

A string is, by definition, a character array. No conversion is required.


How do you convert char to String in java?

A String is nothing but a bunch of characters one after the other whereas a character has a size of only '1' So converting a string into a char is not possible. what you can do is form a character based on only one element from the string. Ex: String name = "Rocky"; char xyz = name.charAt(0); now the char xyz will have one character from the String.


How to capitalize the first letter of a string without using built in C functions?

jst subtract 32 from first character of string to convert it into capital


Difference between character and string?

A string ends with a '\0' character,but character is not.


Which character in string is used to end the string?

Character zero (the byte with the decimal value zero) is sometimes used to end a string. But in other cases, the size of the string is stored at the beginning of the string, and there is no end-of-string character. This allows any character to be included in the string.


How to convert lowercase to uppercase in java?

In Java you can invoke the toUpperCase()method on a string to convert it to a new string with all upper case characters.For example, "abc".toUpperCase() returns "ABC"Likewise, the static Character.toUpperCase(char ch) method takes a single character and returns the upper-case equivalent of that character (e.g. 'a' -> 'A').


Is string an object?

No. A string is, by definition, a character array.


Is string is an object?

No. A string is, by definition, a character array.


Write a program sort a list of names in alphabetical order in java programming language?

// Let's assume we're sorting the characters in String toSort // convert the String to an array of characters char[] chars = toSort.toCharArray(); // let Java do the sorting for you Arrays.sort(chars); // recreate the original String with the newly sorted array of characters toSort = new String(chars);


String functions Of sql server 2005?

SQL Server provides us with a variety of string functions. Some of them are:LOWER - To convert a string to lower caseUPPER - To convert a string to upper caseLTRIM - To trim blank spaces from the left side of the stringRTRIM - To trim blank spaces from the right side of the stringSUBSTRING - To pick up specific portions of a stringREVERSE - To reverse the input stringREPLACE - To replace the character at a specified position of a string with anotheretc.


What is the difference between A and A in string?

Well, A is an identifier; 'A' is a character-literal; "A" is a string literal (of 1 character); "'A'" is another string literal (of 3 characters).


Java program to convert lowercase to uppercase?

You can use the toUpperCase() method on a String to convert any String to all uppercase.