Subversion Repositories Projects

Rev

Rev 255 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 255 Rev 382
Line 17... Line 17...
17
{
17
{
18
    public final static String ip_digit_zeroes(int digit)
18
    public final static String ip_digit_zeroes(int digit)
19
    {   return "" + digit/100 + "" +   (digit/10)%10 + "" + (digit)%10;   }
19
    {   return "" + digit/100 + "" +   (digit/10)%10 + "" + (digit)%10;   }
20
 
20
 
21
 
21
 
-
 
22
    public final static String[] combine_str_arr(String[] arr1 , String[] arr2)
-
 
23
    {
-
 
24
        String[] res=new String[arr1.length+arr2.length];
-
 
25
        for (int pos=0;pos<res.length;pos++)
-
 
26
            if (pos<arr1.length)
-
 
27
                res[pos]=arr1[pos];
-
 
28
            else
-
 
29
                res[pos]=arr2[pos-arr1.length];
-
 
30
        return res;
-
 
31
    }
-
 
32
 
22
    public final static String pound_progress(int val,int max)
33
    public final static String pound_progress(int val,int max)
23
    {
34
    {
24
        String res="" + (val+1) + "/" + max + " |";
35
        String res="" + (val+1) + "/" + max + " |";
25
        for (int i=0;i<max;i++)
36
        for (int i=0;i<max;i++)
26
                res+=(i<(val+1))?"#":"_";
37
                res+=(i<(val+1))?"#":"_";