【发布时间】:2016-05-14 03:03:36
【问题描述】:
我有这个代码
import java.io.*; import java.util.*;
import javax.xml.parsers.*; import org.xml.sax.InputSource;
class TeamPlayer {
private int pulse;
TeamPlayer() { pulse= -10; }
TeamPlayer(int v0) {pulse= v0 +5;}
public int m(int v) { return 31%3 ;}
public int get_pulse() { return 1* pulse;}
}
class GoalKeeper extends TeamPlayer {
GoalKeeper() { stress -=8; }
public static int stress=3;
public int m(int v) { return (v & 3) + 15; }
}
但我不明白“&”是什么意思。和“&&”有区别吗?
【问题讨论】:
-
谷歌“
&和&&java 之间的区别”。请在此处发布之前努力搜索。这是一个例子:stackoverflow.com/questions/7199666/…
标签: java