package com.test;public class URShift {
public static void mian(String[] args){
int i=-1;
i>>>=10;
System.out.println(i);
long l=-1;
l>>>=10;
System.out.println(l);
short s=-1;
s>>>=10;
System.out.println(s);
byte b=-1;
b>>>=10;
System.out.println(b);
}
}
程序没错却执行不出来是为什么啊?
public static void mian(String[] args){
int i=-1;
i>>>=10;
System.out.println(i);
long l=-1;
l>>>=10;
System.out.println(l);
short s=-1;
s>>>=10;
System.out.println(s);
byte b=-1;
b>>>=10;
System.out.println(b);
}
}
程序没错却执行不出来是为什么啊?
解决方案 »
- 那位使用过水晶报表。
- 数字排序问题,
- 请大家推荐点学习JAVA 的好书!!
- rss与jsp如何结合在一起
- 为什么这个矩阵乘法不能运行?
- 编一个要求能按流程显示图片、播放音频、录音的在线口试软件用什么来编好?我现在用JB,不知道选择哪种,APPLET还是JSP,或者其它?我对J
- java中多线程问题,使用httpclient和jdk1.5中的util.concurrent包
- 关于applet与数据库的通讯
- java.lang.noclassdefounderror:x1 是由于什么原因产生的错误?
- 可以用java写apache的模块吗?
- jfreechat曲线图上的数值无法完全显示
- jar打包问题
....
public static void main(String[] args) { int i = -1;
i >>>= 10;
System.out.println(i);
long l = -1;
l >>>= 10;
System.out.println(l);
short s = -1;
s >>>= 10;
System.out.println(s);
byte b = -1;
b >>>= 10;
System.out.println(b); }
public static void main(String[] args){
int i=-1;
i>>>=10;
System.out.println(i);
long l=-1;
l>>>=10;
System.out.println(l);
short s=-1;
s>>>=10;
System.out.println(s);
byte b=-1;
b>>>=10;
System.out.println(b);
}
}
主方法写错了。是main,不是mian.
main 马虎不得
改为main