Java from entry to the master Chapter 8 packaging

table of Contents

Integer

Boolean

Byte

Character

Double

Number


java.lang 包

Integer

  • Construction method
    • Integer(int number);
    • integer (String str); numeric String
  • constant:
    • MAX_VALUE int type maximum
    • MIN_VALUE int type minimum
    • SIZE bits int value's complement
    • Class Examples TYPE basic type int
  • Common method

Boolean

  • Construction method
    • Boolean(boolean value);
    • Boolean (String str); equal to true if the String argument is not null, and ignoring case, to assign a true representation of the object, false otherwise assigned
  • constant
    • TRUE, the corresponding value of true Boolean object group
    • FALSE, the corresponding group of Boolean object is false
    • TYPE, substantially Class object type boolean
  • Common method

Byte

  • Construction method
    • Byte(byte value);
    • Byte (String str); String argument must be numeric
  • constant
    • MIN_VALUE, byte type The minimum value
    • MAX_VALUE, byte type the maximum possible value
    • byte value SIZE, expressed in the form of two's complement
    • TYPE, Class instance representing the primitive type byte
  • Common method

Character

  • Construction method
    • Character(char value)
  • Constant, Character constants provide a large number represents a particular character
    • CONNECTOR_PUNCTUATION, return a byte value that indicates the category of conventional Pc Unicode specification
    • UNASSIGNED, return a byte value representing the conventional Cn Unicode category specification
    • TITLECASE_LETTER, return a byte value that indicates the category of conventional Lt Unicode specification
  • Common method

Double

  • Construction method
    • Double(double value);
    • Double (String str); String parameter value type of a string
  • constant
    • MAX_EXPONENT, returns an int value that indicates the limited double variable may have the greatest exponent
    • MIN_EXPONENT, returns an int value that represents the normalized double variable may have the lowest index
    • NEGATIVE_INFINITY, returns a double value that represents the preservation of type double negative infinity constants
    • POSITIVE_INFINITY, returns a double value representing positive infinity of type double save constants
  • Common method

Number

  • An abstract class is a superclass Number BigDecimal, BigInteger, Byte, Double, Float, Integer, Long and Short class, subclass must provide Number of converting the value represented by byte, double, float, int, long, and short way
  • Method Number class are implemented by the respective subclass Number, that is, in all subclasses Number class contains the following method

 

 

 

 

Published 46 original articles · won praise 0 · Views 1031

Guess you like

Origin blog.csdn.net/weixin_37680513/article/details/103354669