??????????
???????????? ???????[ 2012/7/25 11:23:56 ] ????????
????18????β????????
????????????£?????????????????????е??????????????????????????????????????????ò?????????????????????
????????????????y???????????????????????
????19????????????
??????assertEquals??a?? b????assertTrue??a == b?? ????????????????????????????????????????????????????????????????????? ???????????????????????????????????????????????????
????20???????????
????????????????????????????????????????????????
??????????????????????????????????????
void setLength(double length) throws IllegalArgumentException;
????????????????????????????????????
try
{
setLength(-1.0);
fail(); // If we get here?? something went wrong
}
catch (IllegalArgumentException exception)
{
// If we get here?? all is fine
}
????21????????????????
??????д????????????????????????APIС?????????????????????????????????????????????????д????????????????
?????Щ???飺
?????? ???????????????????ó??????????????setter??????????
?????? ?????????ü?к?????????????
?????? ???????????????C++???????Χ??Java???????API??
?????? ?????????????
?????? ?????????????????
?????? ??????????????????????????????????API?е??????
?????? ??????e????????????????в???????????????????????????????????????С?????
public void scale(double x0??double y0??double scaleFactor)
{
// scaling logic
}
public void scale(double x0?? double y0)
scale(x0?? y0?? 1.0);
}
?????????????????????????????????????ж?????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11