Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~4K People Reached
Favorite Forums
Favorite Tags
java x 13
c x 7
Member Avatar for pavani2006
Member Avatar for pavani2006

how can i check a given string to form a palindrome or not for(i=0;i<str.length();i++) { if(str.charAt(i)==str1.charAt(i) } }

Member Avatar for JamesCherrill
0
220
Member Avatar for pavani2006

i want to print words in reverse. i could print characters in reverse but not words for(int i=arr.length;i>0;i--) printf(arr[i]);

Member Avatar for devaru2003
0
214
Member Avatar for pavani2006

i can write a palindrome pro but i dont to write using recursive function can any body help and to check whether a palindrome can fotmed from a given string? j=0,k=0; while((j<strlen(str)-1)/2) { if(str[j]!=str[strlen(str)-1-j]) { k=1; break; } j++; } if(k==0) printf("palindrome") else printf(not a palindrome");

Member Avatar for ~s.o.s~
0
537
Member Avatar for pavani2006

how can write a orogram to check whether palindromw is posiible from a given stirng for(i=0;i<strlen(a);i++0 { if(a[[i]==b[i]) printf(a[i]; ) }

Member Avatar for Salem
0
204
Member Avatar for pavani2006

1. Write a java program using following details. You are free to make all necessary assumptions. All the assumptions made should be documented. There are four scientists who need to be ordered according to their smartness (smartest to least smart). There is a text file “smart.txt” in the following format: …

Member Avatar for ~s.o.s~
0
246
Member Avatar for pavani2006

1.WHAT IS THEDIFFERNCE BETWEEN LOCAL INNER CLASS AND NON LOCAL INNER CLASS? [B]2.Is there any tool in java that can create reports ? 3.?What is meant by a resource leak[/B] ?

Member Avatar for jwenting
0
75
Member Avatar for pavani2006

i want to find the lcm ,cant it be found without using gcd? class Gcd { int a,b; Gcd(int a,int b ) { this.b=b; this.a=a; } int gcd( int a,int b) { while(a!=b) { if(a>b) a=a-b; else b=b-a; return a; } } int lcm() { int l; if(a<b) l=(a*b)/gcd(a,b); else …

Member Avatar for iamthwee
0
116
Member Avatar for pavani2006

i want to find the second smallest number ib array but it is displaying second highest number int max=0,second=0; if(a[0]>a[1]) { max=a[0]; second=a[1]; } else { max=a[1]; second=a[0]; } for( i=2;i<n;i++) { if(a[i]>=max) { second=max; max=a[i]; } else if(a[i]>second) second=a[i]; } System.out.println("the second smallest nubmer is"+second);

Member Avatar for ajay_tabbu
0
156
Member Avatar for pavani2006

ehat is the differencde between error,checked exception and unchecked exception?when occurs at what time?compile time or runtime?which of them can be handled and what not handled?example?

Member Avatar for masijade
0
134