Get started with Java today
Oracle Java is the #1 programming language and development platform. It reduces costs, shortens development timeframes, drives innovation, and improves application services.
Oracle Java is the #1 programming language and development platform. It reduces costs, shortens development timeframes, drives innovation, and improves application services.
return this.longString.substring(begin, end); } public static void main(String[] args) {. List subStrings = new ArrayList(NUMBER_OF_BUFFERS)Create String from char array, release dummy char array. String longString = new String(bigCharArray)
File an issue Hitting a snag with your Java application and can't find anything in search? Have a small enhancement suggestion for the JDK? File a new issue!
When run with Java 1.6_21 the code works fine regardless of the access specifier of arr. EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - The console should readOverride public String toString() {. return Arrays.toString(arr)