Skip to content

Category Archives: Scala

Short, a 16-bit signed integer (equivalent to Java’s short primitive type) is a subtype of scala.AnyVal. The toLong() method is utilized to convert the specified… Read More
Short, a 16-bit signed integer (equivalent to Java’s short primitive type) is a subtype of scala.AnyVal. The toInt() method is utilized to convert the specified… Read More
The toString() method is utilized to return the string representation of the specified value. Method Definition: def toString(): String Return Type: It returns the string… Read More
The toChar() method is utilized to convert the specified int number into char type value. Method Definition: (Number).toChar Return Type: It returns the converted char… Read More
The toShort() method is utilized to convert the specified int number into a short type value.  Method Definition: (Number).toShortReturn Type: It returns the converted short… Read More
The toLong() method is utilized to convert the specified int number into float long type value. Method Definition: (Number).toLong Return Type: It returns the converted… Read More
The toInt() method is utilized to convert the specified int number into float int type value.  Method Definition: (Number).toIntReturn Type: It returns the converted int… Read More
The toFloat() method is utilized to convert the specified int number into float data type value. Method Definition: (Number).toFloat Return Type: It returns the converted… Read More
The round() method is utilized to return the rounded value of the specified int value. This method is used to avoid accidental loss of precision… Read More
The hashCode() method is utilized to return hash value of the specified int value. Method Definition: def hashCode(): Int Return Type: It returns hash value… Read More
The equals(arg0: Any) method is utilized to return true if the two specified int value is equal else false. Method Definition: def equals(arg0: Any): Boolean… Read More
The shortValue() method is utilized to return the short value of the specified value. Method Definition: def shortValue(): Byte Return Type: It returns the short… Read More
The longValue() method is utilized to return the long value of the specified value. Method Definition: def longValue(): Byte Return Type: It returns the long… Read More
The intValue() method is utilized to return the int value of the specified value. Method Definition: def intValue(): Byte Return Type: It returns the int… Read More
The byteValue() method is utilized to return the byte value of the specified int value. Method Definition: def byteValue(): Byte Return Type: It returns the… Read More