Rev 242 | Rev 382 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 242 | Rev 252 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | { |
4 | { |
5 | public final static String ip_digit_zeroes(int digit) |
5 | public final static String ip_digit_zeroes(int digit) |
6 | { return "" + digit/100 + "" + (digit/10)%10 + "" + (digit)%10; } |
6 | { return "" + digit/100 + "" + (digit/10)%10 + "" + (digit)%10; } |
Line -... | Line 7... | ||
- | 7 | ||
- | 8 | ||
- | 9 | public final static String pound_progress(int val,int max) |
|
- | 10 | { |
|
- | 11 | String res="" + (val+1) + "/" + max + " |"; |
|
- | 12 | for (int i=0;i<max;i++) |
|
- | 13 | res+=(i<(val+1))?"#":"_"; |
|
- | 14 | res+="|"; |
|
- | 15 | return res; |
|
- | 16 | } |
|
- | 17 | ||
7 | 18 | ||
8 | 19 | ||
9 | public final static String ip_str(int[] ip,boolean with_zeroes) |
20 | public final static String ip_str(int[] ip,boolean with_zeroes) |
10 | { |
21 | { |
11 | if(with_zeroes) |
22 | if(with_zeroes) |