I have a huge set of strings, where I want to find the length of the each string and add them and display the total length of string.
To calculate the length, I use method as string.length()
, but I noticed that datatype of length() is int and max size of int is 2,147,483,647. However my string object have characters more then 2,147,483,647. Any suggestion how to get the length when it goes beyond int limit?