Write a program to check the validity of any entered character and print if it is an alphabet, digit or any other character. |
|
asked by Anushka K (anonymoususer) 6 years ago | |
1 |
Do we need to describe the variables for the class program( the very first programme)?? variables and method are already described there... |
|
asked by Sameed Hussain (sameed) 6 years ago | |
2 |
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; } |
|
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); |
|
asked by Ragini Jain (adityajain1234) 6 years ago | |
3 | |
The Java keyword which is used to convert a variable into constant?? Is it final or is it static |
|
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! |
|
asked by RaBh (rahulbhardwaj2002) 6 years ago | |
7 |
What do you mean by...sole trapping in football?? |
|
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. |
|
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. |
|
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 |
|
asked by Kris Shibu (zeusinmars) 6 years ago | |
0 |
Page 467 |
ICSE chat