corejava 常用的类和方法(国外英文资料).docVIP

  • 4
  • 0
  • 约 18页
  • 2017-06-05 发布于河南
  • 举报

corejava 常用的类和方法(国外英文资料).doc

corejava 常用的类和方法(国外英文资料)

corejava 常用的类和方法 Package Java. Lang, Character classes The static char toLowerCase (char ch) is converted to lowercase The static char toUpperCase (char ch) is converted to uppercase Class class 1 class.forname (); Set a class to a class object Public static Class ? class.forname (String className) 2 newInstence (); Generate a new object (instantiated object) from the class object Public T newInstance () 3 getName (); Get the name of the class object Public String getName () 4 getModifiers (); Get the class modifier Public int getModifiers () 5 the getFields (); Get all the properties in the class Public Field [] getFields () 6 getMethods (); Get all the methods in the class Public Method [] getMethods () 7 getDeclaredFields (); Get all the attributes that are inherited from the class Public Field [] getDeclaredFields () 8 getDeclaredMethods (); You get all the methods that are inherited by the class Public Method [] getDeclaredMethods () 9 getDeclaredField (); Get the attributes inherited from the class Public Field getDeclaredField (String name) 10 getDeclaredMethod (); You get the method of inheritance in the class Public Method getDeclaredMethod (String name, Class ? ... parameterTypes) 11 getField (); Get the properties in the class Public Field getField (String name) 12 getMethed (); Get the method in the class Public Method getMethod (String name, Class ? ... parameterTypes) The Integer class 1 static int parseInt (String s) / / converts a String to an int 2 the Static int parseInt (String s, int I) / / convert the first few bits of the String to an int type Object class Object clone () clone Object 2 Boolean equals (Object obj) Void finalize () is invoked when the method is invoked Void notify () wakes a single thread Void notifyAll wakes up multiple threads Void wait () causes the thread to wait 7 void wait (long timeout) how many milliseconds the thread waits The Runtime class The process exec (String command) executes the specified String command in a se

文档评论(0)

1亿VIP精品文档

相关文档