1楼:匿名用户
bufferedimage img=new bufferedimage(80,32,bufferedimage.type_int_rgb);
画图。。。
fileoutputstream stream=new fileoutputstream("a.jepg");//**名
jpegimageencoder enc=jpegcodec.createjpegencoder(stream);
enc.encode(img);
急急急急!!!跪求高手帮忙做java程序,有意者留下邮箱!!谢谢……
2楼:匿名用户
517306304@**.*** 我也不是很厉害,你可以发来看看
跪求java高手,我有几个程序想要高手帮忙编一下!急急急!**:362168209~ 20
3楼:匿名用户
/*** @author shy2850
*/public class point
public point(character name, float x, float y)
public point()
public void setname(character name)
public character getname()
public string tostring()
}public class line
public string getname()
public point getbeginpoint()
public void setbeginpoint(point beginpoint)
public point getendpoint()
public void setendpoint(point endpoint)
public double getlength()
public double getdistenceofcenter()
public string tostring()
}public class trangle
public void setp1(point p1)
public point getp2()
public void setp2(point p2)
public point getp3()
public void setp3(point p3)
public trangle(point p1, point p2, point p3)
public line getlines()
return lines;
} public boolean istrangle()
public double getarea()
public string tostring()}
4楼:匿名用户
我也是新手,写了给你看看:
point类:
package ***.java.tuxing;
public class point
}line类:
package ***.java.tuxing;
import java.util.scanner;
public class line
public double linelength()
public string linename()
public point changexy(point p)
public double zhongdianlength()
}********类:
package ***.java.tuxing;
public class ********
public double bianchang(point p1,point p2)
public double mianji()
public boolean is********()
else
return true;}}
测试类:
package ***.java.tuxing;
public class test
}输出结果:
点:------------------------------------------
点x的坐标是: (1.0,1.0)
点y的坐标是: (4.0,4.0)
直线:-----------------------------------------
点x的坐标是: (1.0,1.0)
点y的坐标是: (4.0,4.0)
xy的边长是:4.242640687119285
xy的边长名称是:***.java.tuxing.point@61de33***.java.tuxing.point@14318bb
xy的边中点距离原点:3.5355339059327378
三角形:---------------------------------------
点a的坐标是: (1.0,1.0)
点b的坐标是: (2.0,3.0)
点c的坐标是: (3.0,4.0)
ab的边长是:2.23606797749979
ac的边长是:3.605551275463989
bc的边长是:1.4142135623730951
三角形abc的面积是:0.5000000000000032
t是三角形吗?:true
直线名称不知道怎么弄...
5楼:唔製
point类
/***
* @author mrcao.tk**/
public class point
public void setx(float x)
public float gety()
public void sety(float y)
public point(float x, float y)
public point()
}-------------------------------------
line类
/***
* @author mrcao.tk**/
public class line
public void seta(point a)
public point getb()
public void setb(point b)
public line()
public line(point a, point b)
/*** 计算直线的长度
* @return 长度
*/public float getlength()
/*** 线段中点到坐标原点的距离
* @return 距离
*/public float getoriginalpointlength()
}-------------------------------------
********类
/***
* @author mrcao.tk**/
public class ********
public void seta(point a)
public point getb()
public void setb(point b)
public point getc()
public void setc(point c)
public ********(point a, point b, point c)
public ********()
/*** 计算三角形的周长
* @return 周长
* @throws exception
*/public float getlength() throws exception
line line1 = new line(a, b);
line line2 = new line(b, c);
line line3 = new line(c, a);
return line1.getlength() + line2.getlength() + line3.getlength();
}/**
* 计算三角形面积
* @return 面积
* @throws exception
*/public float getacreage() throws exception
//用海**式计算
line line1 = new line(a, b);
line line2 = new line(b, c);
line line3 = new line(c, a);
float p = (line1.getlength() + line2.getlength() + line3.getlength()) / 2;
return (float) math.sqrt(p * (p - line1.getlength()) * (p - line2.
getlength()) * (p - line3.getlength()));
}/**
* 判断是否三角形
* @return 能否组成三角形
* @throws exception
*/public boolean is********()
} catch(exception e)
return false;}}
6楼:扛把子发哥
贴出来吧,虽然我也是新手,但觉得程序员要有共享的精神
求java高手帮忙解决java安全机制问题!!!急急急!!!
7楼:永远丹笑
应该是没有权限的问题,如果说更改java.policy的话你可以更改如下信息
permission java.lang.runtimepermission "accessclassinpackage.sun.jdbc.odbc";
permission java.util.propertypermission "file.encoding", "read";
祝你好运!
跪求高手 帮我把java小应用程序改成java应用程序 请留下邮箱我把程序发给你 急需急需
8楼:特权礼包发放
可以滴滴我,或者私信给我信息。写好,发给你。
急需帮忙java问题解答!!!!!!!!!
9楼:匿名用户
声明三个变量,把你要比较的数赋给这三个变量,然后用冒泡排序法就可以解决了
10楼:黑魂儿
class max
catch(arrayindexoutofbound***ception e1)
return maxnumber;
}public static void main(string args)}
跪求java高手,我有几个程序想要高手帮忙编一下!急急急!
11楼:矢风快乐
public class ***plex
public ***plex(int en, int vi)
public int getentry()
public void setentry(int entry)
public int getvisual()
public void setvisual(int visual)
//显示:
public void show***p()
//加法:
public ***plex add***p(***plex c1,***plex c2)
//减法:
public ***plex sub***p(***plex c1,***plex c2)
//乘法:
public ***plex multi***p(***plex c1,***plex c2)
//相同返回true,不同返回false
public boolean equal***p(***plex c1,***plex c2)
}//测试类
public class test}