Ask a Question | Answer a Question! |
Submitting your question...
ResFinder - Thousands of Practice Papers
Where are the guys who posted the quick revision of all definitions and gave model programs? |
|
asked by Sudhanshu Gupta (newxprince) 5 years ago |
0 |
Two points of differences between If else if ladder and Switch case |
|
asked by SODA The Ultimate comedy (aniruddha_1) 5 years ago |
3 |
Could someone explain >> and << to me? I'd be grateful.... |
|
asked by Mr. Mathematics (aditya_bandaru) 5 years ago |
1 |
if (n == 0)
{
n = sum;
sum = 0;
}
I cannot find any use of these lines in magic number progrma
Can anyone pllease explain. |
|
asked by Bitthal Maheshwari (bitthal04) 5 years ago |
5 |
String res = str.replace(" " , ""); this works
but this String res = str.replace(' ' , ''); do not work
Why? if they should be character then ther should be ' ' |
|
asked by Ansh Anand (teleansh) 5 years ago |
1 |
+ 2 more questions by teleansh
Why can't we replace a character with empty character. I want to remove spaces from sentence and using
ch = str.charAt(i);
str = str.replace( ch , "");
but it is showing error |
|
asked by Ansh Anand (teleansh) 5 years ago |
0 |
Why it is not working. It is a program for Duck Number
import java.util.Scanner;
public class magic
{
public static void main (String args[])
{
Scanner sc = new Scanner(System.in);
System.out.println("ENTER NO TO CHECK");
int num = sc.nextInt();
String str = Integer.toString(num);
int len = str.length();
int count = 0;
int i;
for(i=0 ; i <len ; i++)
{
if ( str.charAt(i) == '0')
count ++;
}
if(count > 0 && str.charAt(0) != '0')
System.out.println("It is a Duck Number");
else
System.out.println("It is not a Duck Number");
}
} |
|
asked by Ansh Anand (teleansh) 5 years ago |
2 |
Anyone from Mumbai |
|
asked by Tubhyam Mehta (tirth7683) 5 years ago |
3 |
I'm so glad I found ResPaper! Nice to have mates from over the country(well mainly Bangalore and Mumbai but yeah :P)
Well, I should be saying all this on the last board exam but well passion, mistress of desires and it sways it to the mood of what it likes or loathes. |
|
asked by Aquaman- King of the Seven Seas (shauns) 5 years ago |
3 |
any one here commercial applications.... |
|
asked by jesusavari 5 years ago |
0 |
If there is difference between two things asked for 2 marks and we have only one point are examples accepted? |
|
asked by Anvaya Juvekar (anvaya) 5 years ago |
1 |
What is the scope of local,instance & class variable? |
|
asked by Jeevan Kumar (jeevanms) 5 years ago |
2 |
|