This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
The types are incompatible because "String" is an array of Strings: a block of memory that holds zero, one, or more String objects. Thus, you can't set the value of one String to be the value of zero or more other Strings.
Can you explain what you're trying to do. Yes, you're trying to assign a String to a String, but back up. Why do you want to do that? Are you trying to get the first String from the array? If so, you wantOr, are you trying to contatenate all the Strings in the array into a single String (add them together)? If this is what you want, you can use the addition (+) operator on Strings. [ January 27, 2005: Message edited by: David Harkness ]