文章列表
drop table tb;
create table tb(
year number(4),
quarter char(1),
amount number(2,1)
);
delete from tb;
insert into tb values(2000,1,'1.1');
insert into tb values(2000,2,'1.2');
insert into tb values(2000,3,'1.3');
insert into tb values(2000,4,'1.4');
insert into tb values(2001,1,' ...
1:反序:
public static void reverseString (String str){
for (int i = str.length(); i > 0; i--) {
System.out.print(str.charAt(i -1));
}
//use array method
char[] data = str.toCharArray();
for (int i = data.length; i>0; i--) {
System.out.print(data[i - 1]);
}
}
2:数组拷 ...