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 or maximum value represented by an int or Integerint intValue()Returns the value of this Integer intDouble Classas anDouble(double value)Constructs a new Double object that represents the specified double valuedouble doubleValue()Returns the value of this Double as a doubleMath ClassReturns the absolute value of an int valueReturns the absolute value of a double valueR
AP Computer Science A Java Quick Reference; 2020 Updates; teacher resources; exam resources; course resources; student resources; exam information; course information; Created Date 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}}}