日期:2014-05-20 浏览次数:20693 次
public class TestOperator { public static void main(String[] args) { char s[]={'h','e','l','l','o'}; int i=4; int iArray[]; iArray=new int[4]; for(;i>0;i--) { iArray[i]=s[i]>>4; System.out.println(iArray[i]); } } }
public class TestOperator { public static void main(String[] args) { char s[]={'h','e','l','l','o'}; int i=4; int iArray[]; iArray=new int[[del]5[/del]]; for(;i>0;i--) { iArray[i]=s[i]>>4; System.out.println(iArray[i]); } } }