-
December 10th, 2004, 11:22 AM
#1
Senior Member
simple Java Code
Hello Following is a very simple code for a basically a bigneer like me.
---------------------------------------------------------------------------------------
class FirstProgram
{
public static void main(String h[])
{
System.out.println(h);
}
}
---------------------------------------------------------------------------------------
I have done : javac FirstProgram.java
it is compiling well,
I am giving the input at the runtime to be printed by:
java Firstprogram hello ("hello" is inouted at the run time).
but it not printting "hello", instead giving me the following message:
[Ljava.lang.String;@108786b
I would be really greatfull if someone can educate me, about what is going wrong with the code, and what does this message means.
Regards
Harbir
U get What U pay for.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|