임의의 길이의 임의의 문자열을 생성했습니다. lower, upper, numbers & 구두점.랜덤 문자열 (임의의 길이 길이 및 모든 문자 유형)에서 문자 (*, ',?, :, /, , all)를 바꿔야합니다.
randomStringWithSpecialChar(boolean specChar, String... specialChars){
String randomString = "GHHG#^%^57687987*'?:/\fgdg"
if(!specChar){
# I should replace (*, ', ?, :, /,\) with x, so that I can pass it as my testdata
String finalString = "GHHG#^%^57687987xxxxxxfgdg"
}
return finalString
}
자바 프로그래밍 중입니까? (어떤 언어가 아닌 경우) – FDinoff