Ask a Question | Answer a Question! |
![](/img/l.gif)
Submitting your question...
ResFinder - Thousands of Practice Papers
Re write using for loop
int m=100;
while(true)
{
System.out.println(m/2);
m-=10; if(m%4==0)break;
}
Is this answe valid:
boolean v=true;
for(int m=100;v==true;m-=10)
{
System.out.println(m/2);
v=(m%4==0)?false:true;
} |
![](//pl.respaper.com/64/ashutosh_dash.jpg) |
asked by Ashutosh Dash (ashutosh_dash) 6 years ago |
2 |
Whats the output:-
s1 = "ABC";
s2 = "ABCD";
int n = s2.compareTo(s1);
System.out.println(n); |
![](//pl.respaper.com/64/adityajain1234.jpg) |
asked by Ragini Jain (adityajain1234) 6 years ago |
3 |
+ 1 more questions by adityajain1234
In 2015 icse computer exam, their was some question about "garbage value", is it in the syllabus for tomorrow? |
![](//pl.respaper.com/64/adityajain1234.jpg) |
asked by Ragini Jain (adityajain1234) 6 years ago |
1 |
|
The Java keyword which is used to convert a variable into constant??
Is it final or is it static |
![](//pl.respaper.com/64/chende.jpg) |
asked by Jeff mckinley (chende) 6 years ago |
5 |
// Copy this code in BlueJ and be amazed!
public class Wow
{
public static void main(String[] args) throws Exception
{
int a=10,b=0,c=10;
String s1="TFy!QJu ROo TNn(ROo)SLq SLq ULo+UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^NBELPeHBFHT}TnALVlBLOFAkHFOuFETpHCStHAUFAgcEAelclcn^r^r\\tZvYxXyT|S~Pn SPm SOn TNn ULo0ULo#ULo-WHq!WFs XDt!";
a=s1.charAt(b);
while (a != 0)
{
if (b < 170)
{
a = s1.charAt(b);
b++;
while (a > 64)
{
a--;
if (++c=='Z')
{
c/=9;
System.out.print((char)(c));
}
else
System.out.print((char)(33 ^ (b & 0x01)));
}
}
else
break;
}
}
}
//STRICTLY NOT FOR EXAMINATION PURPOSES! |
![](//pl.respaper.com/64/rahulbhardwaj2002.jpg) |
asked by RaBh (rahulbhardwaj2002) 6 years ago |
7 |
What do you mean by...sole trapping in football?? |
![](//pl.respaper.com/64/eleven.jpg) |
asked by Vaishnavi Kattimani (eleven) 6 years ago |
3 |
Is there no way to extract individual words from a string to perform various operations, expect by using array? I am confusion. |
![](//pl.respaper.com/64/gar_d02.jpg) |
asked by Gargie D'souza (gar_d02) 6 years ago |
4 |
An interesting fact:
Are comment lines in Java programs executed by the compiler??
Add a response to that first and then scroll down,please.
//How are you
//Looking for the answer its coming
//\u000d System.out.println("A comment that executes");
Looking for the output:
A comment that executes
Confused,scroll down
Actually,when we use \u000d then what follows next is regarded as the next line in Java
So the code would have been clear if I would have written like this:
//\u000d
System.out.println("A comment that executes");
Enjoyed it after a nerve-racking day of Study??
Strictly not for exam purpose
and if then at your own risk. |
![](//pl.respaper.com/64/rishidc.jpg) |
asked by Rishi dey chowdhury (rishidc) 6 years ago |
0 |
Can someone give me the link for prefix and postfix exercises and predict the outputs...
ASAP |
![](//pl.respaper.com/64/zeusinmars.jpg) |
asked by Kris Shibu (zeusinmars) 6 years ago |
0 |
precedence of operators in java -(arithmetic,relational,logical,ternary) pls arrange |
![](//pl.respaper.com/64/arya9591.jpg) |
asked by Atharva45 (arya9591) 6 years ago |
2 |
All escape sequence characters with their use and examples?? |
![](//pl.respaper.com/64/monstercat.jpg) |
asked by Abhinav Sharma (monstercat) 6 years ago |
1 |