Class a{
private int h;//横坐标
private int z;//纵坐标
a(int h,int z)
{
this.h=h;
this.z=z;
}
void seth(int h)
{
this.h=h;
}
void setz(int z)
{
this.z=z;
}
int geth()
{
return h;
}
int getz()
{
return z;
}
}
老大,你看过书没有啊。其实很简单啊。
private int h;//横坐标
private int z;//纵坐标
a(int h,int z)
{
this.h=h;
this.z=z;
}
void seth(int h)
{
this.h=h;
}
void setz(int z)
{
this.z=z;
}
int geth()
{
return h;
}
int getz()
{
return z;
}
}
老大,你看过书没有啊。其实很简单啊。
解决方案 »
- The source attachment doesnot contain the source for the file TrueTypeFont.class
- 求助
- java里有多少个类加载器
- 求教,java发送邮件。
- acsii码转换
- 如何在JComboBox中添加选项
- 请问这一句是什么意思呀
- 怎么用java applet 访问asp
- jbuilder7里的两个小问题
- 哪里有java代码资源好的网站?请推荐!!!
- 如何知道操作系统是windows 还是redhat linux,以及如何调用linux的命令?
- 为什么这样会找不到当前目录下的文件File myfile = new File("test.txt"); 谢谢
int x;
int y;
void init(int x,int y) //设置初始值
{ this.x=x;
this.y=y;
}
int setx(int x){ //改变x
this.x=x;
return this.x;
}
int sety(int y){ //改变y
this.y=y;
return this.y;
}
int getx(){ //得到x
return x;
}
int gety(){ //得到y
return y;
}
}
主程序你就自己编吧!!
java的精髓在于J2EE,J2ME,EJB等等