Java Games: Flashcards, matching, concentration, and word search.

7.03/7.04

AB
Math classprovides programmers with numerous functions.
Abs(num)Returns the absolute value of a positive or negative number
Sqrt(num)Returns the square root of a number
Sign(num)Returns the sign of a number
Round (num, places)Returns number nearest to the specified value.
Abs() functionDecimal, Double, Int16, Int32, Int64, SByte, Single
StringsRemember with strings the first letter is at index position 0.
Compare()Compares two specified String objects and returns an integer that indicates their relative position in the sort order
Concat()Creates the string representation of a specified object, usually two or more strings
Equals()Determines whether this instance and another specified String  object have the same value
IndexOf()Reports the index of the first occurrence of the specified Unicode character (or string) in this string
Insert()Inserts a specified instance of String at a specified index position in this instance
Remove()Deletes all the characters from this string beginning at a specified position and continuing through the last position
Replace()Returns a new string in which all occurrences of a specified string in the current instance are replaced with another specified string
ToLower()Returns a copy of this string converted to lowercase
ToUpper()Returns a copy of this string converted to uppercase
Trim()Removes all leading and trailing white-space characters from the current String object
TrimEnd()Removes all trailing occurrences of a set of characters specified in an array from the current String object
TrimStart()Removes all leading occurrences of a set of characters specified in an array from the current String object



This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities