各位大侠帮忙一下哈!!!小问题※ 唉,看看jdk的源代码,写得很清楚 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 写一个简单的吧:class Point { int x=0; int y=0; Point() { x=0; y=0; } Point(int xx, int yy) { x=xx; y=yy; } int getX() { return x; } void setX(int _x) { x=_x; } int getY() { return y; } void setY(int _y) { y=_y; }}public class TestPoint { public static void main(String[] args) { Point a = new Point(); Point b = new Point(1, 2); System.out.println("a.x=" + a.x + " a.y=" + a.y); System.out.println("b.x=" + b.x + " b.y=" + b.y); b.setX(3); b.setY(4); System.out.println("b has changed:"); System.out.println("b.x=" + b.x + " b.y=" + b.y); }} ext.ajax.request的问题 关于to string javah 该怎么用呀?? java--this指针在哪里存着呢? 如何得到String[]的元素个数? 内存映射文件问题 新下载的Tomcat5.5.9中没有配置数据库联接池的页面请问在哪里下载呢? 请问这是个什么组件! 请人请点一、二 如何配置JCREATOR?? 想知道哪种显示图片的方式更消耗服务器资源 java的interface到底有什么用?
class Point {
int x=0;
int y=0; Point() {
x=0;
y=0;
} Point(int xx, int yy) {
x=xx;
y=yy;
} int getX() {
return x;
}
void setX(int _x) {
x=_x;
} int getY() {
return y;
}
void setY(int _y) {
y=_y;
}
}public class TestPoint {
public static void main(String[] args) {
Point a = new Point();
Point b = new Point(1, 2); System.out.println("a.x=" + a.x + " a.y=" + a.y);
System.out.println("b.x=" + b.x + " b.y=" + b.y); b.setX(3);
b.setY(4);
System.out.println("b has changed:");
System.out.println("b.x=" + b.x + " b.y=" + b.y);
}
}