自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 资源 (3)
  • 收藏
  • 关注

原创 如何写漂亮的返回值为 boolean 类型的方法

<br />public boolean isLow() { if ((myGasoline + myBattery) < 10) { return true; } else { return false; }}<br />更漂亮的:<br />public boolean isLow() { // Compute (true or false) if we are low, // and return that

2011-05-12 18:01:00 1425

原创 Boolean Precedence

<br />Boolean PrecedenceThe above examples use parentheses to spell out the order of operations. The boolean not ! has a high precedence -- in (!a && b) the ! is evaluated on the a, before the &&. We could add in parenthesis (!(a && b)) to force the && to

2011-05-12 17:22:00 262

原创 求更精的代码!

<br /><br />/* * File: Pyramid.java * ------------------ * This program is a stub for the Pyramid problem, which draws * a brick pyramid. */import acm.program.*;import acm.graphics.*;import java.awt.*;public class Pyramid extends Graphics

2011-04-21 22:07:00 254

PHP CookBook 3rd Edition

PHP COOKBOOK第三版 solutions and examples for php programming!正版纯英文

2014-11-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除