ich weiss nicht wie ich readLine verwenden kann
package de.codegym.task.task19.task1908;
import java.io.*;
import java.util.regex.*;
/*
Zahlen aussuchen
*/
public class Solution {
public static void main(String[] args) {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
BufferedInputStream bufInStream = new BufferedInputStream(new FileInputStream(reader.readLine()));
BufferedOutputStream outStream = new BufferedOutputStream(new FileOutputStream(reader.readLine()));
byte[] buffer = new byte[bufInStream.available()];
while(bufInStream.available() > 0){
int input = bufInStream.read(buffer);
}
StringBuilder stb = new StringBuilder();
String out = null;
String sentence = null;
for(int i = 0; i < buffer.length; i++){
out = Integer.toString(buffer[i]);
sentence.append(out); // findet er nicht
}
//Pattern pat = Pattern.compile("\\d+");
//Matcher matcher = pat.matcher(sentence);
//ArrayList<Integer> ints = new ArrayList<>();
//while(matcher.find()){
// ints.add(Integer.parseInt(matcher.group()));
//}
String digits = CharMatcher.JAVA_DIGIT.retainFrom(out);
}
}