<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 23,comments - 12,trackbacks - 0
    • char charAt(int index)

      returns the character at the specified location.

    • int compareTo(String other)

      returns a negative value if the string comes before other in dictionary order, a positive value if the string comes after other in dictionary order, or 0 if the strings are equal.

    • boolean endsWith(String suffix)

      returns true if the string ends with suffix.

    • boolean equals(Object other)

      returns true if the string equals other.

    • boolean equalsIgnoreCase(String other)

      returns true if the string equals other, except for upper/lowercase distinction.

    • int indexOf(String str)

    • int indexOf(String str, int fromIndex)

      return the start of the first substring equal to str, starting at index 0 or at fromIndex.

    • int lastIndexOf(String str)

    • int lastIndexOf(String str, int fromIndex)

      return the start of the last substring equal to str, starting at the end of the string or at fromIndex.

    • int length()

      returns the length of the string.

    • String replace(char oldChar, char newChar)

      returns a new string that is obtained by replacing all characters oldChar in the string with newChar.

    • boolean startsWith(String prefix)

      returns true if the string begins with prefix.

    • String substring(int beginIndex)

    • String substring(int beginIndex, int endIndex)

      return a new string consisting of all characters from beginIndex until the end of the string or until endIndex (exclusive).

    • String toLowerCase()

      returns a new string containing all characters in the original string, with uppercase characters converted to lower case.

    • String toUpperCase()

      returns a new string containing all characters in the original string, with lowercase characters converted to upper case.

    • String trim()

      returns a new string by eliminating all leading and trailing spaces in the original string.

    字符串與基本數(shù)據(jù)類型的轉(zhuǎn)換間的轉(zhuǎn)換必須使用JSP中的對象函數(shù)
    Boolean.getBoolean(String)
    Byte.parseByte(String)
    Short.parseShort(String)
    Integer.parseInt(String)
    Long.parseLong(String)
    Float.parseDouble(String)
    Double.parseDouble(String)
    String.valueOF(數(shù)據(jù))


    Array

  • static void arraycopy(Object from, int fromIndex, Object to, int toIndex, int count)

    Parameters:

    from

    an array of any type (Chapter 5 explains why this is a parameter of type Object)

     

    fromIndex

    the starting index from which to copy elements

     

    to

    an array of the same type as from

     

    toIndex

    the starting index to which to copy elements

     

    count

    the number of elements to copy

    copies elements from the first array to the second array.

    java.util.Arrays 1.2

     

    • static void sort(Xxx[] a)

      Parameters:

      a

      an array of type int, long, short, char, byte, boolean, float or double

      sorts the array, using a tuned QuickSort algorithm.

    • static int binarySearch(Xxx[] a, Xxx v)

      Parameters:

      a

      a sorted array of type int, long, short, char, byte, boolean, float or double

       

      v

      a value of the same type as the elements of a

      uses the BinarySearch algorithm to search for the value v. If it is found, its index is returned. Otherwise, a negative value r is returned; -r - 1 is the spot at which v should be inserted to keep a sorted.

    • static void fill(Xxx[] a, Xxx v)

      Parameters:

      a

      an array of type int, long, short, char, byte, boolean, float or double

       

      v

      a value of the same type as the elements of a

      sets all elements of the array to v.

    • static boolean equals(Xxx[] a, Object other)

      Parameters:

      a

      an array of type int, long, short, char, byte, boolean, float or double

       

      other

      an object

      returns true if other is an array of the same type, if it has the same length, and if the elements in corresponding indexes match.

  • eg: 

     int[] smallPrimes = {2, 3, 5, 7, 11, 13};
      int[] luckyNumbers = {1001, 1002, 1003, 1004, 1005, 1006, 1007};
      System.arraycopy(smallPrimes, 2, luckyNumbers, 3, 3);
      for (int i = 0; i < luckyNumbers.length; i++)
         System.out.println(i + ": " + luckyNumbers[i]);

    posted on 2005-09-05 13:56 my java 閱讀(336) 評論(0)  編輯  收藏 所屬分類: java
    主站蜘蛛池模板: 久久精品国产亚洲精品2020| 久久精品国产亚洲5555| 亚洲视频在线免费播放| 亚洲网站在线免费观看| 麻豆亚洲AV永久无码精品久久 | 亚洲中文无码永久免| 在线观看亚洲电影| 国产午夜无码片免费| 久9热免费精品视频在线观看| 欧洲乱码伦视频免费| 亚洲国产精品视频| 亚洲美女aⅴ久久久91| 美美女高清毛片视频黄的一免费| 免费无码一区二区三区| 亚洲国产精品一区二区九九| 未满十八私人高清免费影院| 99精品视频在线视频免费观看| 久久亚洲精品无码| 亚洲av无码专区在线电影 | 又大又硬又爽又粗又快的视频免费| 久久久久亚洲av无码专区喷水| 无码av免费毛片一区二区| 亚洲欧美日韩自偷自拍| 日韩插啊免费视频在线观看| 亚洲神级电影国语版| 免费萌白酱国产一区二区三区| 免费的一级片网站| 亚洲国产精品婷婷久久| 国产精品无码免费专区午夜 | 亚洲成a人片在线观看日本| 99亚洲精品卡2卡三卡4卡2卡| 一本岛高清v不卡免费一三区| 亚洲妇女无套内射精| 大学生a级毛片免费观看| 亚洲Av永久无码精品三区在线| 久久一区二区三区免费| 亚洲日韩在线第一页| 国产成人亚洲精品无码AV大片| 亚洲精品中文字幕无码蜜桃| 久久久久久久国产免费看| 亚洲中文无码线在线观看|