Results 1 to 5 of 5
Thread: how to print the String Array?
- 06-09-2011, 11:53 AM #1
Member
- Join Date
- May 2011
- Location
- chennai
- Posts
- 29
- Rep Power
- 0
how to print the String Array?
i want to print the String Array..my code is here
The Return type of .FD_ALL is string Array.Java Code:System.out.println(WMSLoggerFactory.getGlobalLogValue(WMSLoggerIDs.FD_ALL));
I got error like this : The method getGlobalLogValue(String) in the type WMSLoggerFactory is not applicable for the arguments (String[])
how can i print this String?
- 06-09-2011, 11:58 AM #2
Break that up in two lines to properly see where the error originates.
dbJava Code:Object logValue = WMSLoggerFactory.getGlobalLogValue(WMSLoggerIDs.FD_ALL); System.out.println(logValue);
- 06-09-2011, 12:03 PM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,408
- Blog Entries
- 7
- Rep Power
- 17
No, that's not it: the method getGlobalLogValue( ... ) needs a String type argument and a String[] is supplied; the compiler whines about it (and correctly so). I don't know if converting the String[] to a a String by using the Arrays.toString( ... ) method will help ...
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 06-09-2011, 01:37 PM #4
Member
- Join Date
- May 2011
- Location
- chennai
- Posts
- 29
- Rep Power
- 0
Thank you Sir
- 06-09-2011, 03:07 PM #5
Similar Threads
-
using for-loop to print out a string
By baumboards in forum New To JavaReplies: 27Last Post: 03-17-2011, 04:47 PM -
print out string name with the space :) between the first and last name
By the beginner in forum New To JavaReplies: 3Last Post: 02-03-2011, 10:19 PM -
Print Array as String through class file?
By ocarabal in forum New To JavaReplies: 3Last Post: 06-08-2010, 05:22 AM -
Print String from an Array
By adityasirohi in forum New To JavaReplies: 2Last Post: 02-18-2010, 04:10 PM -
I can only print string literals
By leeavital in forum New To JavaReplies: 1Last Post: 12-11-2009, 01:20 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks