1,3 → 1,5 |
import java.util.Vector; |
|
public final class DUBwiseHelper |
{ |
public final static String ip_digit_zeroes(int digit) |
24,6 → 26,37 |
} |
|
|
public final static String[] split_str(String str,String sep) |
{ |
|
Vector nodes = new Vector(); |
|
// Parse nodes into vector |
int index = str.indexOf(sep); |
while(index>=0) { |
nodes.addElement( str.substring(0, index) ); |
str = str.substring(index+sep.length()); |
index = str.indexOf(sep); |
} |
// add last element |
nodes.addElement( str ); |
|
// Create splitted string array |
String[] result = new String[ nodes.size() ]; |
if( nodes.size()>0 ) { |
for(int loop=0; loop<nodes.size(); loop++) |
{ |
result[loop] = (String)nodes.elementAt(loop); |
System.out.println(result[loop]); |
} |
|
} |
|
return result; |
} |
|
|
|
public final static int mod_decimal(int val,int mod_power,int modder,int setter,int clipper) |
{ |
|