Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
c x 1
read x 1
java x 1
Member Avatar for devanshee

import java.io.*; public class t1 { public static void main(String a[]) { int i; char c='a'; char[] ch={'a','b','c'}; for(i=0;i<3;i++){ System.out.println(ch[i]+" "); } //String s=c.toString(); //char cant be dereferenced String s=ch.toString(); System.out.println(" S : "+s); } } Q-1) I am getting an error while converting a character array to String aoject. …

Member Avatar for stultuske
1
163
Member Avatar for devanshee

i am confused that when to use '&' sign in arrays. some times in string array or in character array i got confused. bcz array name itself is an address .so an1 can plz help me out of this??

Member Avatar for Narue
0
2K