rectangle.java
来自「随着手机的日益普及、Java功能在移动设备上的实现」· Java 代码 · 共 48 行
JAVA
48 行
/* * Rectangle.java * * Copyright 2000 JJKING Software, Junichi Ito <jun1@mailhost.net> * Permission to use, copy, modify, and distribute this software and its * documentation without fee for NON-COMMERCIAL is free. */ /** * This class represents a rectangle to specify the region on the screen. */public class Rectangle{ /** * The x-coordinate of top left of the rectangle. */ public int x; /** * The y-coordinate of top left of the rectangle. */ public int y; /** * The width of the rectangle. */ public int width; /** * The height of the rectangle. */ public int height; /** * Create new rectangle. * @param x the x-coordinate of top left of the rectangle. * @param y the y-coordinate of top left of the rectangle. * @param width the width of the rectangle. * @param height the height of the rectangle. */ public Rectangle(int x, int y, int width, int height) { this.x = x; this.y = y; this.width = width; this.height = height; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?