当前位置: 技术问答>java相关
还是个简单的问题,如何产生一组随机的STRINGS!
来源: 互联网 发布时间:2015-10-31
本文导语: 在做个东西!要用到,谁能给我原代码,高分向送! | 有没有用啊?? package random; import javax.swing.UIManager; import java.util.*; interface generator{ Object next(); } interface chargenerator{ char next(); } class...
在做个东西!要用到,谁能给我原代码,高分向送!
|
有没有用啊??
package random;
import javax.swing.UIManager;
import java.util.*;
interface generator{
Object next();
}
interface chargenerator{
char next();
}
class array{
static void start(int from,int to,int length){
if (from!=0||to!=length)
System.out.println("["+from+":"+to+"]");
}
public static void print(Object[] a){
print(a,0,a.length);
}
public static void print(String msg,Object[] a){
System.out.println(msg + " ");
print(a,0,a.length);
}
public static void print(Object[] a,int from,int to)
{
start(from,to,a.length);
for(int i=from;i
package random;
import javax.swing.UIManager;
import java.util.*;
interface generator{
Object next();
}
interface chargenerator{
char next();
}
class array{
static void start(int from,int to,int length){
if (from!=0||to!=length)
System.out.println("["+from+":"+to+"]");
}
public static void print(Object[] a){
print(a,0,a.length);
}
public static void print(String msg,Object[] a){
System.out.println(msg + " ");
print(a,0,a.length);
}
public static void print(Object[] a,int from,int to)
{
start(from,to,a.length);
for(int i=from;i