public class Test {
public static void main(String[] args) {
String line=".Raghu";
System.out.println(line);
char[] h= line.toCharArray();
char[] f=null;
int c=0;
if(h[0]=='.')
{
for(int i=0; i<h.length; i++){
f[c]= h[i];
System.out.println(f[c] + h[i]);
c++;
}
f[c]='\0';
}
}
}
sneharaveendran 0 Newbie Poster
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
kvprajapati 1,826 Posting Genius Team Colleague
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
sneharaveendran 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.