Search:

Type: Posts; User: mikerousse

Search: Search took 0.10 seconds.

  1. Replies
    1
    Views
    940

    Sum from a file

    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 {
  2. Replies
    3
    Views
    891

    Re: Change it to array

    How can I do that?
    Any code examples?
  3. Replies
    3
    Views
    891

    Change it to array

    Hi guys,

    let's assum that we have the following program:


    import java.io.*;


    class readFile {
    public static void main(String[] args) {
  4. Replies
    8
    Views
    1,127

    Re: Array & file

    the size of the array is 10 products and 10 numbers :)

    I love you :)
  5. Replies
    8
    Views
    1,127

    Re: Array & file

    Many thank I really appreciate it.

    --- Update ---

    [highlight=java]

    import java.io.*;
    import java.util.StringTokenizer;

    class Main {
  6. Replies
    8
    Views
    1,127

    Re: Array & file

    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...
  7. Replies
    8
    Views
    1,127

    Re: Array & file

    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...
  8. Replies
    8
    Views
    1,127

    Array & file

    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{
Results 1 to 8 of 8