Transcription of Java Quick Reference - College Board
{{id}} {{{paragraph}}}
java Quick ReferenceAccessible methods from the java library that may be included in the examClass Constructors and MethodsExplanationString ClassString(String str)Constructs a new String object that represents the same sequence of characters as strint length()Returns the number of characters in a String objectString substring(int from, int to)Returns the substring beginning at index from and ending at index to - 1 String substring(int from)Returns substring(from, length())int indexOf(String str)Returns the index of the first occurrence of str; returns -1 if not foundboolean equals(String other)Returns true if this is equal to other; returns false otherwiseint compareTo(String other)Returns a value <0 if this is less than other; returns zero if this is equal to other; returns a value >0 if this is greater than otherInteger ClassInteger(int value) Constructs a new Integer object that represents the specified int minimum value represented by an int
Java Quick Reference Accessible methods from the Java library that may be included in the exam Class Constructors and Methods. Explanation String Class; String(String str) Constructs a new: String : object that represents the same sequence of ... 4/17/2019 8:31:51 PM ...
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}