CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Location
    G day Mayt Land
    Posts
    971

    [RESOLVED] structures in Java

    in C/C++ you can use #include to include a list of header files


    File ata.h
    ------------
    struct A{

    };

    struct B{

    };


    If we move them individually to separate files
    File:A.h
    --------
    struct A{
    };


    File:B.h
    --------
    struct A{
    };


    Then Data.h could be expressed in

    File ata.h
    -------------
    #include A.h
    #include B.h

    .................

    Question :
    How is this done in Java ?
    Using Java version on windows 1.8_51

  2. #2
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,877

    Re: structures in Java

    Java does not have any way to have the compiler include lines of source from another file into a java source file.
    Norm

  3. #3
    Join Date
    May 1999
    Location
    G day Mayt Land
    Posts
    971

    Re: structures in Java

    Thanks
    Using Java version on windows 1.8_51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured