public class print
{
public print()
{
System.out.println("python print operating...");
}
public print(int a)
{
System.out.println(a);
}
public print(double a)
{
System.out.println(a);
}
public print(boolean a)
{
System.out.println(a);
}
public print(String a)
{
System.out.println(a);
}
public print(int[] a)
{
for(int i : a)
{
System.out.print(i);
System.out.print(i == a[a.length-1]?"":",");
}
}
public print(int[] a, String b)
{
for(int i : a)
{
System.out.print(i);
if(b == "sep=\\")
{
System.out.print(i == a[a.length-1]?"":"\\");
}
if(b == "sep=.")
{
System.out.print(i == a[a.length-1]?"":".");
}
if(b == "sep=-")
{
System.out.print(i == a[a.length-1]?"":"-");
}
if(b == "sep=_")
{
System.out.print(i == a[a.length-1]?"":"_");
}
if(b == "sep=/")
{
System.out.print(i == a[a.length-1]?"":"/");
}
}
}
}
就是玩玩,没什么技术含量,大家想用就用。
|