¹ØÓÚ Java ÖеĽӿÚ
½Ó¿ÚÖв»¿ÉÒÔ¶¨Òå¹¹Ôì·½·¨
½Ó¿ÚÖÐÖ»ÄÜÓÐ public static final µÄ±äÁ¿ ºÍ public abstract µÄ·½·¨£¬ÆäËü¶¼²»¿ÉÒÔ¡£
ÀýÈ磺
´úÂëÀïÊÇÕâÑùдµÄ
public interface B{
StringBuilder sb=null;
void fun();
}
²é¿´Éú³ÉµÄ×Ö½ÚÂ룬·´Éú³ÉºóµÃµ½
public interface B
{
public abstract void fun();
public static final StringBuilder sb = null;
}
¿É¼û£¬Èç¹ûÎÒÃDz»Ð´È«Ç°ÃæµÄǰ׺£¬±àÒëÆ÷»á×Ô¶¯¼ÓÉÏ¡£
Èç¹ûǰ׺дµÃ²»ÊÇ
public static final µÄ±äÁ¿ ºÍ public abstract µÄ·½·¨ Éú³É×Ö½ÚÂëʱ»á±¨´í¡£
Ïà¹ØÎĵµ£º
1¡¢¼òµ¥ java
2¡¢¿ÉÒÆÖ²ÐÔ Ò»´Î±àÒë´¦´¦ÔËÐÐ
3¡¢ÃæÏò¶ÔÏó
4¡¢·Ö²¼Ê½ java°Ñ´ò¿ªÌ×½Ó×ֵȷ±ËöµÄÍøÂçÈÎÎñ±äµÄ·Ç³£¼òµ¥
5¡¢½¡×³ÐÔ java±àÒëÆ÷¿ÉÒÔ¼ì²é³öÆäËûÓïÑÔÔÚÔËÐÐʱ²ÅÄÜ·¢ÏֵĴíÎó
6¡¢¶àÏß³Ì ¶àÏ̵߳ļòµ¥ÐÔÊÇjavaÁ÷ÐÐÓÚ·þÎñÆ÷±à³ÌµÄÖ»ÒªÔÒò
7¡¢°²È«
8¡¢½á¹¹ÖÐÁ¢
9¡¢¶¯Ì¬
¡£¡£¡£ ......
²»ÖªµÀÊÇ·ñÎÒ¿´µÄÊéÌ«ÉÙ£¬ÎÒ¾õµÃÄ¿Ç°¿´µ½µÄËùÓеÄjavaµÄÈëÃŵÄÊ鶼²»ÊʺϳõѧÕß¡£ÕâÖÖ²»Êʺϣ¬²»ÊÇÄÚÈݲ»Êʺϣ¬ÆäʵÄÚÈݽ²µÃ¶¼ºÃ£¬µ«ÊǾÍÊDz»Äܱ»³õѧÕß¿ìËÙÎüÊÕ¡£ÎªÊ²Ã´²»ÊʺÏÄØ£¬ÒòΪûÓж¨ÒåºÃʲôÊdzõѧÕߣ¬¶øÇÒÕâЩ±àÊéµÄÈË£¬¶¼¾¹ýÕý¹æµÄ½ÌÓý£¬Ã»ÓÐÀí½âʲôÊdzõѧÕߣ¬³õѧÕßµ½µ ......
public class FindPrime {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int num = 100;
String s = "100ÒÔÄÚµÄËØÊý£º";
for (int i = 1; i <= num; i++) {
int count = 0;
for (int j = 1; j <= (int) Math.s ......