java.util.scanner
Help please, while loop and tokenizer and reading files
I need help, obviously. Our assignment is to retrieve a file and categorize it and display it in another file. Last name first name then grade. I am having trouble with getting a loop going because of[详细]
2023-02-22 10:05 分类:问答My java code is flawed, but i dont understand why
I am very new at java and my be missing something very basic.When i run my code i am trying to add value to accounts created in the code.When i try to run the code i recieve an error that a file canno[详细]
2023-02-19 18:12 分类:问答Trying to read binary file as text but scanner stops at first line
I\'m trying to read a binary file but my program just stops at first line.. I think it\'s because of the strange characters the file has..I just want to extract some directions from it. Is there a way[详细]
2023-02-18 16:53 分类:问答How to get the name of a File that is in a Scanner Object in java?
Hello: I was given a Scanner that is a File. Something like this: Scanner theScan = new Scanner(new File(\"name.file\"));[详细]
2023-02-18 03:04 分类:问答Question about System.in and stream
Is there a way to reset System.in so I can have a fresh stream fr开发者_开发技巧om which to have Scanner wait for input? Here is my code:[详细]
2023-02-13 03:38 分类:问答Java Scanner won't read
I\'m trying to read from a file that has information wr开发者_运维百科itten in the format: someName:aDoubleNumber[详细]
2023-02-12 12:42 分类:问答Input on console doesn't work with this java program - why?
With this program it skips past the inputs - and outputs this to the console: C:\\Users\\User\\workspace\\ClassManager\\bin>java AccessPupilData[详细]
2023-02-12 00:52 分类:问答Using scanner.nextLine() [duplicate]
This question already has answers here: Scanner is skipping nextLine() after using next() or nextFoo()?[详细]
2023-02-11 06:51 分类:问答How to interrupt java.util.Scanner nextLine call
I am using a multi threaded environment were one Thread is constantly listening for user input by repeatedly calling scanner.nextLine().[详细]
2023-02-10 17:58 分类:问答nextChar() in java
If I\'m taking input with a scanner and I want to put a single character into a char type variable, what is the most efficient algorithm? I just noticed that both next() and nextLine() return strings[详细]
2023-02-10 13:54 分类:问答