Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By clydedoris

Thread: Newby

  1. #1
    bobcox is offline Member
    Join Date
    Jan 2012
    Location
    Illinois
    Posts
    3
    Rep Power
    0

    Default Newby

    New to Java-want to add outputs rto PrChes.exe program. I started programming about 1965 on an IBM 1620 using FOR II, then IBM 1130, Then GE TS Basic in 1968 (interpreter), then PL/1 on 370/168 SAS, FOR V, IMS, Interpretive REXX. I don't understand classes, bindings.

    I have the listing for PrChess but it stops without messages when program ends. I would like to add comments to the screen when the program ends and possibly add a Chess movement log for study.

  2. #2
    ozzyman's Avatar
    ozzyman is offline Senior Member
    Join Date
    Mar 2011
    Location
    London, UK
    Posts
    797
    Blog Entries
    2
    Rep Power
    4

    Default Re: Newby

    Uh... the program is an EXE file... was it written in Java?

    If yes, I guess you have the source code and want to add comments?

    System.out.println("My message to console window"); // output to console = My message to console window

    Commenting source code is done like this:

    Java Code:
    //this is a single-line comment
    
    /**
     * this is a 
     * multi-line
     * comment
     */
    If the program is crashing it should print some error message to the console window if it was written in java and you run it with the commandline argument
    Java Code:
    java -jar myApp.jar
    or:
    Java Code:
    java myClass
    If you don't understand classes or object orientated programming you should start with the basic java tutorials:
    http://docs.oracle.com/javase/tutori...ted/index.html
    Last edited by ozzyman; 01-04-2012 at 10:45 PM.

  3. #3
    clydedoris is offline Member
    Join Date
    Feb 2010
    Posts
    80
    Rep Power
    0

    Default Re: Newby

    those are some really old stuff there which i have never ever heard of.

    anyway, try these old posts from my blog.
    bobcox likes this.
    [why are you annoyed with my sig?]

  4. #4
    bobcox is offline Member
    Join Date
    Jan 2012
    Location
    Illinois
    Posts
    3
    Rep Power
    0

    Default Re: Newby

    Did you intend to reference a site I could look at? There was no reference to a URL I could access. What blog? Where?

  5. #5
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default Re: Newby

    PrChes.exe isn't a java application.

    I don't understand classes, bindings.
    Class (computer programming) - Wikipedia, the free encyclopedia

    Thats a link to Class on wiki - classes are constructs of object oriented programming, on which java is based. I don't however know what you mean by 'bindings'... I've not heard that term used in the context of java other than for networking.

    I have the listing for PrChess but it stops without messages when program ends. I would like to add comments to the screen when the program ends and possibly add a Chess movement log for study.
    What do you mean by 'listing'? The program will not print anything unless it was designed to print something. Can you post your source code here so we can see it? Adding logging to a program is trivial once we can see your program.

Similar Threads

  1. newby question
    By virgil27 in forum New To Java
    Replies: 3
    Last Post: 08-04-2011, 10:04 PM
  2. Newby
    By Zoidy in forum New To Java
    Replies: 5
    Last Post: 11-06-2010, 01:11 PM
  3. Newby need help with pop up banner
    By Lapsesuu in forum New To Java
    Replies: 0
    Last Post: 12-04-2008, 12:01 PM
  4. Java newby
    By violinssoundcool in forum New To Java
    Replies: 6
    Last Post: 01-26-2008, 06:28 AM

Tags for this Thread

Posting Permissions

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