Yes, .length
(property-like, not a method):
String[] array = new String[10];
int size = array.length;
More Related Contents:
- Write a function that will sort a string array using Java
- Reading String for list of Integers separated by spaces [duplicate]
- How to replace a char with a string
- Converting ‘ArrayList to ‘String[]’ in Java
- How to split a String by space
- A quick and easy way to join array elements with a separator (the opposite of split) in Java [duplicate]
- How to convert Java String into byte[]?
- Check string for palindrome
- How to sort an array of objects in Java?
- How to convert a char array back to a string?
- How to convert object array to string array in Java
- How can I get the size of an array, a Collection, or a String in Java?
- length and length() in Java
- Convert array of strings into a string in Java
- Converting String to “Character” array in Java
- Convert String to int array in java
- Sorting 2D array of strings in Java
- String array initialization in Java [duplicate]
- Splitting String and put it on int array
- Print out elements from an Array with a Comma between the elements
- Is it possible in Java to override ‘toString’ for an Objects array?
- Java ByteBuffer to String
- Java equivalent to Explode and Implode(PHP) [closed]
- what is Ljava.lang.String;@
- In Java, how to append a string more efficiently? [duplicate]
- Random element from string array [closed]
- Remove a specific string from an array of string
- How to convert a Java String to an ASCII byte array?
- Why does byteArray have a length of 22 instead of 20?
- Java: Checking equality of arrays (order doesn’t matter)