亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? rect.java

?? 164個java源程序
?? JAVA
字號:
/* * Copyright (c) 2000 David Flanagan.  All rights reserved. * This code is from the book Java Examples in a Nutshell, 2nd Edition. * It is provided AS-IS, WITHOUT ANY WARRANTY either expressed or implied. * You may study, use, and modify it for any non-commercial purpose. * You may distribute it non-commercially as long as you retain this notice. * For a commercial use license, or to purchase the book (recommended), * visit http://www.davidflanagan.com/javaexamples2. */package com.davidflanagan.examples.classes;/** * This class represents a rectangle.  Its fields represent the coordinates * of the corners of the rectangle.  Its methods define operations that can * be performed on Rect objects. **/public class Rect {    // These are the data fields of the class    public int x1, y1, x2, y2;    /**     * The is the main constructor for the class.  It simply uses its arguments     * to initialize each of the fields of the new object.  Note that it has     * the same name as the class, and that it has no return value declared in     * its signature.     **/    public Rect(int x1, int y1, int x2, int y2) {        this.x1 = x1;        this.y1 = y1;        this.x2 = x2;        this.y2 = y2;    }    /**     * This is another constructor.  It defines itself in terms of the above     **/    public Rect(int width, int height) { this(0, 0, width, height); }        /** This is yet another constructor. */    public Rect() { this(0, 0, 0, 0); }    /** Move the rectangle by the specified amounts */    public void move(int deltax, int deltay) {        x1 += deltax; x2 += deltax;        y1 += deltay; y2 += deltay;    }    /** Test whether the specified point is inside the rectangle */    public boolean isInside(int x, int y) {        return ((x >= x1)&& (x <= x2)&& (y >= y1)&& (y <= y2));    }    /**      * Return the union of this rectangle with another.  I.e. return the      * smallest rectangle that includes them both.     **/    public Rect union(Rect r) {        return new Rect((this.x1 < r.x1) ? this.x1 : r.x1,			(this.y1 < r.y1) ? this.y1 : r.y1,			(this.x2 > r.x2) ? this.x2 : r.x2,			(this.y2 > r.y2) ? this.y2 : r.y2);    }        /**      * Return the intersection of this rectangle with another.      * I.e. return their overlap.     **/    public Rect intersection(Rect r) {        Rect result =  new Rect((this.x1 > r.x1) ? this.x1 : r.x1,				(this.y1 > r.y1) ? this.y1 : r.y1,				(this.x2 < r.x2) ? this.x2 : r.x2,				(this.y2 < r.y2) ? this.y2 : r.y2);        if (result.x1 > result.x2) { result.x1 = result.x2 = 0; }        if (result.y1 > result.y2) { result.y1 = result.y2 = 0; }        return result;    }    /**      * This is a method of our superclass, Object.  We override it so that      * Rect objects can be meaningfully converted to strings, can be       * concatenated to strings with the + operator, and can be passed to       * methods like System.out.println()      **/    public String toString() {        return "[" + x1 + "," + y1 + "; " + x2 + "," + y2 + "]";    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人福利视频在线看| 亚洲激情自拍偷拍| 国产精品久久久久三级| 亚洲综合精品自拍| 日韩av不卡一区二区| 激情小说欧美图片| av不卡免费电影| 欧美日韩国产三级| 久久久美女艺术照精彩视频福利播放| 国产精品久久夜| 婷婷成人激情在线网| 国产一区二区美女诱惑| 色婷婷综合久久久中文字幕| 91精品欧美一区二区三区综合在| 国产亚洲人成网站| 亚洲成av人片在线观看无码| 精品影视av免费| 一本大道久久a久久综合婷婷| 日韩欧美一区中文| 亚洲天堂久久久久久久| 久久99久久久久| 在线国产电影不卡| 国产欧美精品国产国产专区| 丝袜诱惑亚洲看片| 91色porny蝌蚪| 久久午夜国产精品| 五月天欧美精品| av激情综合网| 精品国产伦一区二区三区观看方式| 亚洲欧美日韩一区二区| 国产一区二区0| 欧美高清视频一二三区 | 国精品**一区二区三区在线蜜桃| 色综合天天综合给合国产| 日韩欧美一级特黄在线播放| 一区二区视频在线| 国产91丝袜在线播放九色| 亚洲黄色免费电影| 国产成人免费av在线| 欧美丰满一区二区免费视频| 中文字幕日韩一区| 国产综合久久久久影院| 欧美日韩1区2区| 亚洲激情男女视频| www.日韩在线| 国产日韩欧美亚洲| 黄页视频在线91| 欧美丰满一区二区免费视频| 一区二区在线看| 成人app在线| 日本一区二区高清| 国产激情一区二区三区四区 | 日本午夜精品视频在线观看| 色综合中文字幕| 国产精品久久久久永久免费观看 | 久久蜜桃av一区二区天堂| 日韩经典一区二区| 欧美视频中文字幕| 亚洲精品乱码久久久久久久久 | 一区二区三区在线免费| 成人免费视频网站在线观看| 久久久久久9999| 国产综合成人久久大片91| 日韩免费观看高清完整版| 日韩 欧美一区二区三区| 欧美日韩国产一级片| 亚洲电影欧美电影有声小说| 欧美在线视频日韩| 亚洲国产精品一区二区久久恐怖片| 91免费视频观看| 综合久久综合久久| av在线不卡网| 最新不卡av在线| 91原创在线视频| 亚洲综合小说图片| 欧洲亚洲国产日韩| 亚洲成人综合网站| 9191久久久久久久久久久| 免费在线观看精品| 日韩免费看的电影| 国产一区二区三区在线观看免费视频| 亚洲一区精品在线| 欧美一区二区成人6969| 日本欧洲一区二区| 精品美女在线播放| 国产乱码一区二区三区| 欧美高清在线精品一区| 成人a免费在线看| 亚洲色图第一区| 在线观看日韩国产| 日韩成人伦理电影在线观看| 欧美成人bangbros| 成人激情综合网站| 亚洲一二三四区| 欧美肥大bbwbbw高潮| 久色婷婷小香蕉久久| 2021国产精品久久精品| 大美女一区二区三区| 亚洲人一二三区| 欧美午夜影院一区| 免费看欧美美女黄的网站| 久久嫩草精品久久久精品| www.综合网.com| 婷婷开心激情综合| 久久久青草青青国产亚洲免观| proumb性欧美在线观看| 亚洲自拍偷拍av| 精品99999| 91丨porny丨在线| 日韩二区三区四区| 欧美激情一区在线观看| 91福利精品第一导航| 蜜桃av噜噜一区| 中文字幕在线观看不卡视频| 欧美亚洲综合网| 国产一区二区三区久久悠悠色av| 亚洲天堂2016| 日韩一区二区精品| 99国产精品久久| 久久国产免费看| 亚洲视频一二区| 欧美电影免费提供在线观看| 成人黄页毛片网站| 日韩中文字幕不卡| 亚洲国产激情av| 欧美一区二区三区视频免费播放| 成人深夜视频在线观看| 天天影视网天天综合色在线播放| 欧美激情一区二区三区不卡| 欧美高清性hdvideosex| 成人涩涩免费视频| 免费观看久久久4p| 亚洲欧美一区二区在线观看| 日韩一区二区影院| 色综合一个色综合亚洲| 国产精品一区2区| 日韩电影免费在线| 亚洲欧美一区二区久久| 久久久亚洲国产美女国产盗摄| 欧美亚洲国产一区二区三区va| 国产大陆精品国产| 日本不卡视频一二三区| 一区二区三区美女| 国产精品沙发午睡系列990531| 日韩小视频在线观看专区| 在线一区二区三区做爰视频网站| 国产精品自产自拍| 男女视频一区二区| 五月激情综合色| 亚洲色图欧美激情| 欧美国产精品劲爆| 久久尤物电影视频在线观看| 欧美人妖巨大在线| 色999日韩国产欧美一区二区| 国产精品亚洲视频| 国产一区二三区| 免费国产亚洲视频| 亚洲国产va精品久久久不卡综合| 国产精品久久久久影视| 久久亚洲春色中文字幕久久久| 欧美一区二区黄| 88在线观看91蜜桃国自产| 欧美影院精品一区| 色综合天天综合给合国产| 成人av集中营| 成人永久看片免费视频天堂| 狠狠色狠狠色综合系列| 免费国产亚洲视频| 男男成人高潮片免费网站| 婷婷开心久久网| 午夜国产精品影院在线观看| 亚洲丶国产丶欧美一区二区三区| 亚洲男人的天堂在线观看| 一区免费观看视频| 国产精品国产三级国产aⅴ中文| 欧美国产一区二区| 国产精品久久久久永久免费观看| 欧美高清在线精品一区| 国产精品人人做人人爽人人添| 国产欧美一区二区精品久导航 | 东方aⅴ免费观看久久av| 国产精品亚洲专一区二区三区 | 中文字幕一区二区三区乱码在线| 国产精品午夜在线| 国产精品免费人成网站| 国产精品嫩草99a| 18欧美亚洲精品| 亚洲欧美福利一区二区| 一卡二卡三卡日韩欧美| 亚洲一区在线观看网站| 午夜激情综合网| 青青草国产成人av片免费| 看电视剧不卡顿的网站| 国产一区二区精品在线观看| 丁香婷婷综合网| 成人动漫视频在线| 欧美在线观看视频一区二区| 欧美老肥妇做.爰bbww| 欧美一级久久久久久久大片| 日韩欧美国产一区二区三区|