java.util.scanner
Using the scanner class to parse a file but it takes far too long to run
I have a file containing around 39000 ints seperated by commas with 13 ints on each line so i set up a file reader and a scanner to read and parse it however it litterally takes over an hour to run. I[详细]
2023-03-30 02:43 分类:问答java.util.Scanner does not return to Prompt
import java.util.Scanner; class newClass { public static void main(String args[]) { Scanner s = new Scanner(System.in);[详细]
2023-03-29 04:04 分类:问答Scanner isn't reading the last int on each line because of my delimiter
I\'m trying to read a simple text file shown below with the Scanner class and have a a delimiter set as scanner.useDelimiter(\",\"); however as you can see there is no comma at the end of each line so[详细]
2023-03-29 00:50 分类:问答My scanner class isn't reading the next line from the .txt file
I\'m trying to read a text file that looks like this 0,-16,-4,12,10,4,-14,8,44,8,8,12,-4 1,-16,-4,12,10,4,-14,6,43,10,10,12,-4[详细]
2023-03-28 19:08 分类:问答Scanner is skipping nextLine() after using next() or nextFoo()?
I am using the Scanner methods nextInt() and nextLine() for reading input. It looks like this: System.out.println(\"Enter numerical value\")开发者_C百科;[详细]
2023-03-28 13:24 分类:问答To find similar words (strings) in two files
I have to validate the similarity of word 1 in file 1 with word 2 in file 2 and so on. if word 1 (file 1).equals to word 2 (file 2), file 3 will be the output to show the True and False. Below is the[详细]
2023-03-27 21:55 分类:问答beginner java, help me fix my program?
I am trying to make a calculator for college gpa\'s. I cut out all like 20 if statements that just say what each letter grade is. I fixed my first program for anybody looking at this again. The progra[详细]
2023-03-27 00:07 分类:问答Java UI equivalent of Scanner [closed]
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari[详细]
2023-03-25 22:25 分类:问答Question About Copying Text File in Java
so with this piece of code I\'ve written, I was wondering why I am not receiving the type of output I want...[详细]
2023-03-25 15:45 分类:问答Searching using Scanner class in Java lang
i want to search number in a text file and find its line(like index) and returns it.numbers are written line by line to the file.my method:[详细]
2023-03-25 15:03 分类:问答
加载中,请稍侯......