Search:

Type: Posts; User: Zaphod_b

Search: Search took 0.31 seconds.

  1. Replies
    10
    Views
    1,159

    Re: Copying a File

    Thank you for the feedback.


    It was my pleasure.

    And now: Onward and upward!


    Cheers,
  2. Replies
    10
    Views
    1,159

    Re: Copying a File

    The reason that I wrote a completely separate test program is so that you can play around with whatever the heck command line stuff you want. I mean, it's always OK to ask, but wouldn't it save you...
  3. Replies
    10
    Views
    1,159

    Re: Copying a File

    Since my code had the public static void main() method in a public class named Z, it has to be in a file named Z.java to make the java compiler happy.

    I have done this kind of thing so many times...
  4. Replies
    10
    Views
    1,159

    Re: Copying a File

    Did you read the tutorial reference that I gave? Explains about how use the args array to read Strings from the command line?

    Your constructor takes two arguments. Instead of hard-coding the...
  5. Replies
    10
    Views
    1,159

    Re: Copying a File

    See the section of Java tutorials for Command-line Arguments

    Try the following to test it:


    public class Z {
    public static void main(String [] args) {
    System.out.println("Number...
Results 1 to 5 of 5