answersLogoWhite

0


Best Answer

A Vector can store any objects, so yes.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can vector store string values in java programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Rearrange the string in alphabetical order in two dimensional character array?

Use a std::vector<std::string>> to store the strings, then call the std::vector::sort() method.


How do you hold values in C programming?

You hold values by storing them in variables. If you need to hold values between executions, store them in non-volatile memory, such as a disk file.


What do you mean by vectors only hold objects not primitive data types?

It means that you can only store values like Integer, String etc in a Vector and not values like int, float etc. int, float, double etc are primitive data types. collections by their default behavior can hold only objects and not primitives.


How much memory is required to store a 'character' and how much is required to store a 'string'?

a character/byte as defined in the C programming language is one byte (8 bits). A string can be as short as one byte and can be as long as the physical memory limits can contain it.


What purpose do strings serve in programming?

Strings are a type of variable in computer programming. Simply put, they contain multiple characters which are "strung" together to make a piece of text. "Test", "House", and "Hello World!" are all excellent examples of what might be contained in a string. As a result, strings are used to store and convey any textual information.


In C programming a character variable can at a time store how many characters?

You can store one, however if you make a char array: char[50]; You can make a string out of your array of characters.


How does one use JavaScript arrays?

JavaScript arrays is used to generalize multiple values of data and store them in a single variable. This is a useful software in most programming languages.


What are variables and how are they used in programming?

Variables are named memory locations that may be used to store and retrieve values for use later on in a program. They are like memory locations you have in your brain to remember certain things. Variables may (in general) store a single value at a time, but may be erased with other values (one at a time).


What is vector in computer?

Vector graphics refers to a type of graphics that stores color information as well as the paths (curves and shapes) rather than using pixels to store image information (raster graphics). This means that it will retain image quality better than raster graphics, no matter how you scale it (enlarge or shrink) when it comes to designing logos, line art, and other 2D imagery. The most common file type for vector graphics is Scalable Vector Graphics (SVG). In programming, a vector is a scalable array (a type of array that can be resized). For example, strings in C++ would be a vector of characters/bytes.


Where can one get free vector images?

Free vector images are available from many online sources that store vector images. Fotolia and Vecteezy are just a few examples of free vector image websites.


Can a dollar store have gimp string on sale?

Yes it can have gimp string on sale.


How do you store a string of letters for example abcdeabcde each to an array?

In C programming you would use the following: char a[] = "abcdeabcde"; If you wish to create an array with more than one string, use an array of character pointers instead: char* a[] = {"abcde", "fgh", "ijklm", "nopq", "rstu", "vwxyz"};