Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > java code problem.....

Thread Tools

java code problem.....

conteh conteh is offline
Junior Member
Join Date: Jun 2008
Posts: 3
Im having a problem with this code.could somebody help?....

public class WriteAMessage
public static void main(String []args)
if(null == args || args.length < 1)
System.out.println("No message to print. Sorry.");

}//end the if block

String message = new String();

//String message = formatArguments(args);

message += formatArguments(args);

}//end of the main method

public static String formatArguments(String msg[])
String myArgs =new String();
for(int i=0 ; i < msg.length ; i++)

+= msg[ i ] + " ";
}//end the for statement

return myArgs;
}//end formatArguments method
}//end the class

Last edited by conteh; 06-25-2008 at 02:41 PM..
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any tool to convert java raw code (a la java 1.4) into generics code Royan Java 8 02-15-2008 02:35 PM
what is the difference between code inside a <script> tag and code in the code-behind file? keithb ASP .Net 1 03-29-2006 01:00 AM
How to debug through Java code and JNI with native code in c or c++ ? jin zhang Java 1 10-02-2004 08:55 AM
Fire Code behind code AND Javascript code associated to a Button Click Event =?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?= ASP .Net 4 02-11-2004 07:31 AM
Sample Code That Instruments Java Byte Code? CHANGE username to westes Java 1 10-14-2003 06:10 AM