public void cutString(String str, int n)
{
String temp;
int count=0;
for ( int i = 0; i n)
break;
System.out.print(temp);
}
}
@Test
public void testString()
{
cutString("我ABC好的sfd", 7);
}
————————————————
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
机房租用,北京机房租用,IDC机房托管, http://www.e1idc.net