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

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

?? rect.java

?? These are the examples from the book Java Examples in a Nutshell, 2nd Edition, by David Flanagan.
?? 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一区二区三区免费野_久草精品视频
日韩欧美激情在线| 经典一区二区三区| 日日夜夜一区二区| 久久成人麻豆午夜电影| 国产**成人网毛片九色| 欧美影院一区二区| 欧美www视频| 亚洲免费观看高清完整版在线| 五月婷婷综合在线| 国产成人av一区| 欧美亚洲国产怡红院影院| 精品国产网站在线观看| 亚洲色欲色欲www| 蜜臀av性久久久久蜜臀av麻豆| jlzzjlzz欧美大全| 欧美一级搡bbbb搡bbbb| 中文字幕视频一区| 轻轻草成人在线| 972aa.com艺术欧美| 日韩欧美一级二级三级| 亚洲色图第一区| 精品一区二区三区视频| 日本精品一区二区三区四区的功能| 日韩一区二区三区免费看| 一区在线观看免费| 国模冰冰炮一区二区| 欧美日韩中字一区| 国产欧美一区二区三区沐欲| 青青草视频一区| 色网综合在线观看| 久久精品一区二区三区四区| 午夜亚洲福利老司机| 成人激情文学综合网| 91精品国产欧美一区二区成人| 亚洲少妇屁股交4| 国产精品18久久久久久久久| 欧美美女直播网站| 亚洲欧美国产毛片在线| 久久99国产乱子伦精品免费| 欧美亚洲综合网| 综合av第一页| 福利电影一区二区| 欧美mv日韩mv亚洲| 婷婷综合在线观看| 在线亚洲免费视频| 中文字幕一区在线观看视频| 国产一区二区调教| 日韩欧美国产麻豆| 五月婷婷综合网| 欧美偷拍一区二区| 亚洲欧美日韩中文播放 | 欧美电影影音先锋| 国产精品福利一区二区三区| 国产在线精品一区在线观看麻豆| 91精品国产综合久久福利软件| 亚洲a一区二区| 精品视频在线视频| 亚洲精品视频观看| 99精品久久免费看蜜臀剧情介绍| 欧美激情一区二区三区| 国产精品456露脸| 久久九九99视频| 国产成人免费9x9x人网站视频| 久久综合色8888| 久久国产精品无码网站| 日韩精品一区二区三区三区免费 | 欧美一区二区在线视频| 亚洲国产视频在线| 欧美亚洲动漫精品| 亚洲午夜电影在线| 欧美精品乱码久久久久久| 亚洲精品国久久99热| 亚洲成av人**亚洲成av**| 欧美午夜精品久久久久久超碰| 亚洲人成网站在线| 色婷婷综合久久| 亚洲免费av观看| 在线看一区二区| 亚洲五月六月丁香激情| 欧美日韩一区久久| 奇米精品一区二区三区在线观看一| 欧美日韩电影一区| 视频一区二区中文字幕| 日韩亚洲欧美综合| 国产原创一区二区| 国产喷白浆一区二区三区| 成人午夜免费视频| 亚洲精品久久7777| 欧美人妇做爰xxxⅹ性高电影| 日日夜夜精品视频免费| 日韩欧美卡一卡二| 国产成人aaa| 1000精品久久久久久久久| 91久久精品一区二区三区| 亚洲成人免费视频| 日韩一二三四区| 成人性视频免费网站| 亚洲欧美偷拍三级| 在线不卡中文字幕播放| 久久99久久精品| 国产精品视频免费| 91行情网站电视在线观看高清版| 亚洲成人av免费| 精品久久国产老人久久综合| 成人在线视频首页| 一区二区三区国产豹纹内裤在线| 欧美日韩精品二区第二页| 狠狠色综合播放一区二区| 国产精品国产三级国产有无不卡 | 亚洲电影视频在线| 2023国产精品自拍| 99久久免费精品高清特色大片| 亚洲图片欧美色图| 久久久久国产精品麻豆ai换脸 | 午夜精品久久久久久久99水蜜桃 | 国产1区2区3区精品美女| 亚洲精品成a人| 日韩精品专区在线影院重磅| 丁香激情综合五月| 无码av免费一区二区三区试看| 久久久久久久久蜜桃| 欧美在线综合视频| 懂色av中文一区二区三区| 色综合亚洲欧洲| 久久精品国产一区二区三| 国产精品系列在线| 8x8x8国产精品| 99re视频精品| 免费看黄色91| 亚洲人123区| 久久久久国产精品厨房| 欧美日韩不卡一区| 99久久免费精品| 国产一区免费电影| 天天影视涩香欲综合网| 国产精品久久久久久久久免费樱桃| 555www色欧美视频| 91丨porny丨中文| 国产乱理伦片在线观看夜一区| 亚洲综合色自拍一区| 国产欧美一区二区在线| 欧美一级欧美三级| 在线看国产日韩| 高潮精品一区videoshd| 精品一区中文字幕| 天堂蜜桃一区二区三区| 中文字幕字幕中文在线中不卡视频| 精品免费日韩av| 欧美日韩视频在线观看一区二区三区| 高清不卡一区二区| 黄一区二区三区| 蜜臀久久久久久久| 亚洲尤物视频在线| 综合久久给合久久狠狠狠97色| 久久综合久久综合九色| 欧美精品亚洲二区| 91国偷自产一区二区三区成为亚洲经典 | 国产河南妇女毛片精品久久久| 日本不卡一区二区三区高清视频| 亚洲女子a中天字幕| 中文字幕免费观看一区| 欧美videos中文字幕| 制服丝袜中文字幕亚洲| 精品视频免费看| 日本二三区不卡| 97久久精品人人做人人爽50路| 国产精品香蕉一区二区三区| 久久精品国产亚洲一区二区三区| 日韩国产欧美在线播放| 亚洲国产中文字幕| 一区二区三区四区在线播放 | 欧美午夜寂寞影院| 在线免费不卡电影| 欧美亚洲一区二区在线| 久久精品人人做人人爽人人| 91麻豆国产福利精品| jiyouzz国产精品久久| 国产精品一区二区久久精品爱涩 | 久久影院午夜片一区| 欧美电影免费提供在线观看| 欧美一区二区三区日韩视频| 欧美美女bb生活片| 3751色影院一区二区三区| 4438x亚洲最大成人网| 91麻豆精品91久久久久久清纯 | 久久av资源网| 久久97超碰色| 久久国产福利国产秒拍| 精品一区二区在线看| 国产一区激情在线| 国产91在线观看| 99久久99久久精品免费看蜜桃| 99精品欧美一区二区蜜桃免费| 99热99精品| 在线看国产一区| 91.com视频| 久久精品一区二区三区不卡牛牛| 亚洲国产经典视频| 最新不卡av在线| 天天综合天天做天天综合|