StringBuffer sb = new StringBuffer(); sb.append(endDate.substring(5,7)); endDate.substring(5,7)这句是啥意思啊
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/25 01:43:48
xőN@_ ,cjr0O ֆoh0 ԃQ!2;z$ĨeGTZrK\M%RS
'K|)$ox4BECbP=~T?oSڱQөgn+tpV
F:B06@?\¬YGTd¼Ekvp4起%lY0=gBd#ә;dnAaҞ0
x!s'2aTM&;)(Ҿݥ2:Ɍ1j"bPUbrY;)i
StringBuffer sb = new StringBuffer(); sb.append(endDate.substring(5,7)); endDate.substring(5,7)这句是啥意思啊
StringBuffer sb = new StringBuffer(); sb.append(endDate.substring(5,7));
endDate.substring(5,7)这句是啥意思啊
StringBuffer sb = new StringBuffer(); sb.append(endDate.substring(5,7)); endDate.substring(5,7)这句是啥意思啊
endDate.substring(5,7)这句话意思就是:从endDate的第五个字符开始(不包含第五个字符)取到第7个字符的位置(包含第7个字符).
从您的变量命名来看,你应该是要取出月份是多少吧.
String endDate = "2011-07-22 18:30:30";
System.out.print(endDate.substring(5,7));
输出的结果是:07,也就是7月.
StringBuffer sb = new StringBuffer(); sb.append(endDate.substring(5,7)); endDate.substring(5,7)这句是啥意思啊
StringBuffer sb = new StringBuffer( 1=1 and a.DELETED='0' ); 这句话的意思是什么意思StringBuffer sb = new StringBuffer( 1=1 and a.DELETED='0' ); 这句话的意思是设DELETED默认为0,
定义了StringBuffer数组,为什么还要创建string buffers如下程序:public class ThisHappens {public static void main(String[] args) {StringBuffer[] stringBuffers = new StringBuffer[10];for (int i = 0; i < stringBuffers.length; i ++) {strin
String aa,b,c; aa=”bb”; b=”dd”+aa; c=”cc”+b+aa; StringBuffer d = new StringBuffer(c);请问总共创建了多少个对象?求具体解释.
public class Foo { public static void main(String[] args) { StringBuffer a=new StringBuffer(A);问下这里的a怎么和“A‘’,b怎么和''B相等的
StringBuffer sb2=sb1;是什么意思那sb1==sb2与sb1=sb2有什么不同么?
sb+sb=?
return new StringBuffer().append(inputNum).reverse().toString();
关于JAVA的题1.关于字符串,下列语句不正确的是________A.String s = new String(”Olympic game”);B.“Welcome to Guangzhou”.indexOf(‘o’); C.String s = “Great Wall”; s.delete(2,5);D.StringBuffer buffer = new StringBuffer(); b
send sb sth=send sth () sb
return sth.to sb.=return sb.
help sb sth=help sb with ``
smile to sb= sb a smile
show sb around=?
find sb sth =
cheer sb up=
somebody=sb是什么意思
NC=SB吗?