For example, with CharBuffer you can get the next char, get (int index) the char at a specific position, or get (char destination) a bunch of chars.
例如,有了CharBuffer,可以用get获得下一个字符,用get (int index)获得某个特定位置的字符,或者用get (char destination)获得一串字符。
This int is an index into a table of system error messages, called sys_errlist (an array of strings), whose highest element has index sys_nerr - 1.
该整数是对系统错误消息表的索引,这个表名为sys_errlist(字符串数组),其最高元素的索引为sys_nerr - 1。
Add a method called get with return type as the template parameter t from the method (as shown in Figure 4), and an input parameter named index whose type is int.
添加一个名为get的方法。在此方法中,使其返回类型为模板参数t(如图4所示),然后输入参数名字index,其类型为int。
应用推荐