private String site = "stackoverflow";
private Instant previousAnswerTimestamp;
public NatoBot() {
previousAnswerTimestamp = Instant.now().minusSeconds(60);
}
<BUG>public JsonObject getQuestionDetailsByIds(String questionIds) throws IOException{

String questionIdUrl = "https://api.stackexchange.com/2.2/questions/"+questionIds;</BUG>
JsonObject questionJson = JsonUtils.get(questionIdUrl,"site",site,"key",apiKey);
return questionJson;

private String site = "stackoverflow";
private Instant previousAnswerTimestamp;
public NatoBot() {
previousAnswerTimestamp = Instant.now().minusSeconds(60);
}
public JsonObject getQuestionDetailsByIds(List<Integer> questionIdList) throws IOException{
String questionIds = questionIdList.stream().map(String::valueOf).collect(Collectors.joining(";"));
String questionIdUrl = "https://api.stackexchange.com/2.2/questions/"+questionIds;
JsonObject questionJson = JsonUtils.get(questionIdUrl,"site",site,"key",apiKey);
return questionJson;
