Results 1 to 5 of 5
- 01-04-2012, 04:07 PM #1
Member
- Join Date
- Jan 2012
- Location
- Illinois
- Posts
- 3
- Rep Power
- 0
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.
-
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:
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 argumentJava Code://this is a single-line comment /** * this is a * multi-line * comment */
or:Java Code:java -jar myApp.jar
If you don't understand classes or object orientated programming you should start with the basic java tutorials:Java Code:java myClass
http://docs.oracle.com/javase/tutori...ted/index.htmlLast edited by ozzyman; 01-04-2012 at 09:45 PM.
- 01-06-2012, 07:53 AM #3
Member
- Join Date
- Feb 2010
- Posts
- 80
- Rep Power
- 0
Re: Newby
those are some really old stuff there which i have never ever heard of.
anyway, try these old posts from my blog.[why are you annoyed with my sig?]
- 01-06-2012, 02:18 PM #4
Member
- Join Date
- Jan 2012
- Location
- Illinois
- Posts
- 3
- Rep Power
- 0
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?
- 01-06-2012, 04:35 PM #5
Re: Newby
PrChes.exe isn't a java application.
Class (computer programming) - Wikipedia, the free encyclopediaI don't understand classes, bindings.
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.
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.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.
Similar Threads
-
newby question
By virgil27 in forum New To JavaReplies: 3Last Post: 08-04-2011, 09:04 PM -
Newby
By Zoidy in forum New To JavaReplies: 5Last Post: 11-06-2010, 12:11 PM -
Newby need help with pop up banner
By Lapsesuu in forum New To JavaReplies: 0Last Post: 12-04-2008, 11:01 AM -
Java newby
By violinssoundcool in forum New To JavaReplies: 6Last Post: 01-26-2008, 05:28 AM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks