Search:

Type: Posts; User: JavaPF

Search: Search took 0.13 seconds.

  1. Replies
    11
    Views
    2,450

    Re: [SOLVED] merging java classes

    No problem.

    All I basically did was to bring the imports for both classes to the top and inserted the 'ACMIO' class below the end of the 'autoedit' class.

    Glad I could help.
  2. Replies
    11
    Views
    2,450

    Re: [SOLVED] merging java classes

    Hey madkris,

    Here is 'autoedit' & 'ACMIO' together.



    import java.io.*;
    import java.io.FileReader;
    import java.io.InputStream;
    import java.io.InputStreamReader;
  3. Replies
    11
    Views
    2,450

    Re: [SOLVED] merging java classes

    Yes you can put both classes into 1 file. Please take a look at this tutorial:

    Nested Classes (The Java™ Tutorials > Learning the Java Language > Classes and Objects)

    It will also be good to...
  4. Replies
    11
    Views
    2,450

    Re: [SOLVED] merging java classes

    No problem :D
  5. Replies
    11
    Views
    2,450

    Re: merging java classes

    You wanted two classes into one. You only need to have one main class, there is no need to declare the other class in this case.
  6. Replies
    11
    Views
    2,450

    Re: merging java classes

    Hello madkris and welcome to the Java programming forums.

    There were a few things wrong with the code. I've got rid of any reference to 'doinput' because all this code is now within the Main...
Results 1 to 6 of 6