You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

abcuser

Unregistered

1

Monday, January 12th 2009, 7:34pm

How to print some data on screen when using Console Application?

Hi,
I started Console Application from New project option. I tried to write simple program like:

Source code

1
2
3
4
5
6
7
8
9
Public Sub main(ByJava args() As String)
   Dim myArgs() As String
   myArgs = args
   ' [Your Source]
   a=100
   b=10
   c=a+b
   Print c
End Sub

when executing the code I got error: "Compoile error. Class: 'Module 1' line: 9 Expected: End of statement".

Line 9 is "Print c". How to print some output to screen when using Console Application? It was PRINT command in Basic.

Regards

Manuel

Administrator

  • "Manuel" is male

Posts: 256

Date of registration: Jul 16th 2008

Location: Erlangen, Germany

Occupation: Software Developer

Hobbies: Jabaco, game theory, text-mining

  • Send private message

2

Monday, January 12th 2009, 8:25pm

Jabaco Source

1
2
3
4
5
6
7
8
9
Public Sub main(ByJava args() As String)
   Dim myArgs() As String
   myArgs = args
   ' [Your Source]
   a=100
   b=10
   c=a+b
   out.println c
End Sub

Rate this thread
WoltLab Burning Board