Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- VO METODOT NI E DADEN NEKAKOV INPUT STREAM NO NE NI E SPECIFICIRANO OD KADE
- public static void readDataWithScanner(InputStream inputStream) {
- int lines = 0;
- int words = 0;
- int chars = 0;
- Scanner scanner = new Scanner(inputStream);
- SCANNEROT DA NE E OD SYSMTE.IN TUKU OD SOODVENIOT INPUT STREAM
- ODLUCUVAM OD KADE KE CITAM KOGA KE GO POVIKAM METODOT VO MAIN(DALI SO FILE INPUT STREAM ILI OBICEN INPUT STREAM)
- File file=new File("C:\\Users\\User\\Desktop\\Napredno Sept\\src\\AV5\\dat");
- readDataWithScanner(new FileInputStream(file));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement