answersLogoWhite

0


Best Answer

Yes.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can string contains special characters
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

How can you convert byte to string in java?

To convert byte to String in java use the String(bytes, UTF-8); //example for one encoding type. You must know the special encoding that contains a variety of characters.


What elements are in string?

A string is an array of characters.


How do you Print all the first characters in the string in python programming?

Let's say your string is a variable called "string" To print out all the characters in order, you would do: for i in string: print(string[i]) If you wanted to print out characters up to a point (n = maximum characters): for i in range(n): print(string[i]) hope this helps!


Are spaces taken as single character in a string?

public class count { public static void main(String[] args) { String string = "1 2 3 4"; char[] array = string.toCharArray(); System.out.println("Number of characters in string: " + string.length()); System.out.println("Number of characters in array: " + array.length); } } Output: Number of characters in string: 7 Number of characters in array: 7 So yes, spaces are taken as single characters in a string.


What is the difference between a string and a number?

In computer programming, a "string" usually refers to an array of characters. A string may consist of nothing (an empty string) or as many characters as are allowed in an array. To denote a string, surrounding a list of characters by double quotes is the typical standard.Strings:* "" * "abc" * "Cows say 'Moo!'" * "http://wiki.answers.com"Numbers are those fun symbols you remember from math class. The confusing part is when a string contains numbers ("123"). Usually a programming language will have a way to convert between a string of numbers and an actual number type, in case you happen to need to do math with the string.


Count characters in an input string using c sharp?

Console.WriteLine("Please input a string:"); string str = Console.ReadLine(); Console.WriteLine("Number of characters: " + str.Length);


How do you get value of a string in reverse order in c?

Assume C#, not C: Traditional way: public string Reverse(string s) { if (string.IsNullOrEmpty(s)) return s; // "" or null char[] characters = s.ToCharArray(); Array.Reverse(characters); return new string(characters); } or as an extension method: public static string Reverse(this string s) { if (s == "") return ""; char[] characters = s.ToCharArray(); Array.Reverse(characters); return new string(characters); } The differences of the 2 methods above is on the caller (how to use Reverse()), and they may co-exist: For example: string test = "abc"; string result1 = Reverse(test); // traditional way string result2 = test.Reverse(); // call the extension


A text string contains a string of text?

text data


Is special symbols are valid as a string in java?

Yes. Any special character inside the String is considered as part of the string variable and would not be treated as a special character. Ex: String str = "ABC_$4"; is a valid string declaration


What is in string?

A string is a collection of words or characters in '' or "" it is also a data type.


What is the use of the string?

string is group of characters last value is initialised by zero


What is string in Python?

A string is a collection of words or characters in '' or "" it is also a data type.