boolean m=true;
while (m) {
System.out.println("请输入要加密的数据,输入stop就跳出while");
String s =input.next();
BigInteger y=new BigInteger(s);
BigInteger s1=paillier.En(y);
System.out.println(s+"加密的结果是"+s1);
大佬们这个代码中如何使输入stop之后跳出while循环
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
3条回答 默认 最新
Arial Swploit 2020-04-15 21:38关注加一段代码块:
if (s == "stop") { break; }在 String s = input.next(); 的下一行加入
解决 无用评论 打赏 举报