com prog eview

Cards (47)

  • abs()
    returns the absolute value of a numerical value.
  • acos computes the arc cosine of a value.
  • asin() calculates the arc sine of a value.
  • atan computes the arc tangent value.
  • cbrt returns the cube root value to a double data type.
  • ceil, which returns the smallest (closest to negative infinity) double value that is greater than or equal to the specified argument and is equivalent to a mathematical integer.
  • cos returns the trigonometric cosine of an angle.
  • cosh returns the double value of the hyperbolic cosine.
  • exp returns Euler’s number raised to the power of a double value.
  • floor, which returns the largest (closest to positive infinity) double value that is less than or equal to the argument and is equivalent to a mathematical integer.
  • hypot, which returns sqrt(a^2 + b^2) without intermediate overflow or underflow.
  • IEEEremainder computes the remainder operation on two arguments as prescribed by the IEEE 754 standard.
  • log returns the natural logarithm (base e) of a double value.
  • log10 returns the base 10 logarithms of a double value.
  • log1p, which returns the natural logarithm of the sum of the argument and 1
  • max returns the greater of two numerical values.
  • min returns the smaller of two numerical values.
  • pow returns the value of the first argument raised to the power of the second argument.
  • random generates a random double value between 0.0 (inclusive) and 1.0 (exclusive).
  • round(double num), which returns the closest long to the argument.
  • round(float num) returns the closest int to the argument.
  • sin returns the trigonometric sine of an angle.
  • signum, which returns the signum function of the argument.
  • sinh returns the hyperbolic sine of a double value.
  • sqrt returns the correctly rounded positive square root of a double value.
  • tan returns the trigonometric tangent of an angle
  • tanh returns the hyperbolic tangent of a double value.
  • toDegrees converts an angle measured in radians to an approximately equivalent angle measured in degrees.
  • toRadians converts an angle measured in degrees to an approximately equivalent angle measured in radians.
  • E represents the base of the natural logarithms.
  • A String variable is a class type variable that can name an object, and an object has methods as well as a value. These String methods can be used to manage string values
  • equals(Other_String) – returns true if the calling object String and the Other_String are equal. Otherwise, it returns false. callingString.equals(Other_String)
  • length() – returns the size of the String objec
  • equalsIgnoreCase(Other_String) – returns true if the calling String object and the Other_String are the same, considering uppercase and lowercase versions of a letter to be the same. Otherwise, it returns false.
  • toLowerCase() – returns a string with the same characters as the calling object String, but with all characters converted to lowercase.
  • oUpperCase() – returns a string with the same characters as the calling object String, but with all characters converted to uppercase.
  • trim() – returns a string with the same characters as the calling object String, but with leading and trailing white space removed.
  • charAt(Position) – returns the character in the calling object string at the position. Positions are counted 0, 1, 2, etc.
  • substring(Start) – returns the substring of the calling object String from Position Start through to the end of the calling object. Positions are counted 0, 1, 2, etc
  • subString(Start, End) – returns the substring of the calling object String beginning Position Start through, but not including the End position of the calling object. Positions are counted 0, 1, 2, … etc.