private String a(){ Random random = new Random(); StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("A坐"); String[] strings={"一","二","三","四"}; String[] zuowei={"1","2","3","4","5","6","7","8"}; for (String string : strings) { stringBuilder.append(string+"排"); for (String s : zuowei) { int randomNumber = random.nextInt(8) + 1; stringBuilder = stringBuilder.append(randomNumber + "座位"); return stringBuilder.toString(); } } return stringBuilder.toString(); }
EnterpriseemployeeForm
最新推荐文章于 2024-09-04 20:55:34 发布