и я создал файл under.json и добавил точку останова в основной функции, но когда я нажимаю на запуск, и когда я нажимаю на отладоме Ответ Я попытался переустановить расширение
и перезапустить VSCode, но проблема все еще происходит
Это класс, в котором я добавил точку останова: < /p>
Код: Выделить всё
import java.util.*;
public class CaeserCipher {
int key;
String message;
public CaeserCipher(String plaintext, int secret) {
message = plaintext;
key = secret;
}
private String preprocess(String text) {
return (text.toLowerCase()).replaceAll("\\s+", "");
}
protected String encrypt() {
message = preprocess(message);
int n = message.length();
String cipherText = "";
for (int i = 0; i < n; i++) {
char temp = message.charAt(i);
temp += key;
if (temp > 'z')
temp -= 26;
cipherText += temp + "";
}
return cipherText;
}
public static void main(String args[]) {
CaeserCipherDemo test = new CaeserCipherDemo();
test.run();
}
}
< /p>
Подробнее здесь: https://stackoverflow.com/questions/662 ... sudio-code
Мобильная версия