using bufferedreader javafx code example Example: declare bufferedreader java BufferedReader br = new BufferedReader(new InputStreamReader(System.in));