Hi guys,
below I make one program to read in one column the strings and the second column the int:
import java.io.File;
import java.util.Scanner;
public class Main {
Type: Posts; User: mikerousse
Hi guys,
below I make one program to read in one column the strings and the second column the int:
import java.io.File;
import java.util.Scanner;
public class Main {
How can I do that?
Any code examples?
Hi guys,
let's assum that we have the following program:
import java.io.*;
class readFile {
public static void main(String[] args) {
the size of the array is 10 products and 10 numbers :)
I love you :)
Many thank I really appreciate it.
--- Update ---
[highlight=java]
import java.io.*;
import java.util.StringTokenizer;
class Main {
The following give me the error:
Type mismatch: cannot convert from String to StringTokenizer
The constructor StringTokenizer(StringTokenizer) is undefined
Type mismatch: cannot convert from...
Let's start with the 1st problem, the specific program gives me the below error:
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Type mismatch: cannot convert from...
Hi guys,
I have create the following program and I am little stuck here.
Here is the code:
import java.io.*;
import java.util.StringTokenizer;
class ProductNameQuan{