由买买提看人间百态

topics

全部话题 - 话题: endx
(共0页)
a*****p
发帖数: 1285
1
来自主题: Java版 - java graphics2d 画图请教
public class MouseComponent extends JComponent {



public MouseComponent() {

shapes = new ArrayList();
lines = new ArrayList();
bounds = new ArrayList();
current = null;
startpoint = null;
endpoint = null;

isSelected = false;
eraserSelected = false;
cursorPointer = false;
isLine = false;
clear = false;
filled = false;

shapeIndex =... 阅读全帖
W***i
发帖数: 9134
2
来自主题: JobHunting版 - 请教一道题
private int[][] A = {{1,2,3,4},{5,6,7,8},{9,10,11,12},{13,14,15,16}};
public void printA()
{
int endX = A.length-1;
int endY = endX;
int startX = 0;
int startY = 0;
while(endX > 0 )
{
for(int i = startX; i <= endX; i++)
{
System.out.print(A[startX][i] + ",");
}
startY++;

for(int i = startY; i <= endY; i++)
{
System.out.print(A[i][endX] + ",");
}
endX--;

B*M
发帖数: 1340
3
来自主题: JobHunting版 - 请教一道题
while(endX>0)??
是这样么?
e***s
发帖数: 799
4
来自主题: JobHunting版 - A家电面
void filp(int startX, int startY, int endX, int endY){
}
这样一个方法?
e***s
发帖数: 799
5
来自主题: JobHunting版 - A家电面
保证startX < endX; startY < end Y;
然后两层for循环不就完了吗?
是不是我miss something 了?
(共0页)