jeff yashero

Greenhorn
+ Follow
since Sep 24, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by jeff yashero

Excuse me, could you tell me why the word "main" is not in the keyword-list?
20 years ago
/***************************/
abstract interface Car {
public void Wheel();
^^^^^^
}
class BigCar implements Car {
public void Wheel() {
^^^^^^ System.out.println("The bigcar have 4 wheels");
}
}
public class Test {
public static void main(String[] args) {
BigCar bc=new BigCar();
bc.Wheel();
}
}
/***************************/
I delete the keyword "public"(class BigCar & interface Car)...
then compile it
but...it compile error why??
20 years ago
Thanks Ernest ^^
20 years ago
If I wrote some codes like bellow...
//A program about shift">>"
public class Test1{
public static void main(String[] args){
int num=100;
num=num>>-2;
System.out.println("The result is:"+num);
}
}

Why the result equal to zero??
However I try this : " num=num>>(-2) " ,and I got the same answer...
20 years ago