Guys i use 2 Sannn.. object technique for string programes the functions i us r little different but they are not out of syllubus but a new approach for programming this type of code drastically reduces time but i fear whether it will be accepted or not . i dont want to loss marks over examer.. not understanding my code , though op is authentic a program to remove vowels Scanner in = new Scanner(System.in); System.out.println("enter the string"); String len = in.nextLine(); Scanner inn = new Scanner(len).useDelimiter("[aeiou]+"); while(inn.hasNext()) { System.out.print(inn.next()); } ======================= a program to remove only Consonant Scanner in = new Scanner(System.in); System.out.println("enter the string"); String len = in.nextLine(); Scanner inn = new Scanner(len).useDelimiter("[^aeiou]+"); while(inn.hasNext()) { System.out.print(inn.next()); } |
|
asked by Rtstud (mdarfath) 6 years ago | |
2 |
int a=12; system.out.println("a++"+a++); |
|
asked by ⚡The Flash⚡ (devanshu8) 6 years ago | |
3 |
For eco students- what is the definition of a money multiplier?? |
|
asked by Aditi Bhandarkar (aditi702) 6 years ago | |
1 |
Please tell me the output of the following snippet : int i = 1; for(i=1;i<=5;i++) { i++; System.out.print(i+" "); } System.out.println(); System.out.println(i); |
|
asked by Ansh Singh (anshkush) 6 years ago | |
3 |
What is the return type of = operator?? |
|
asked by Aayush Joshi (aayushjoshi) 6 years ago | |
3 |
what must be the format for writing a menu-driven program? |
|
asked by Ashutosh Dash (ashutosh_dash) 6 years ago | |
1 | |
Name the following: *A package involved by default. *String variable to store a decimal fraction 0.732 as a String. |
|
asked by Gargie D'souza (gar_d02) 6 years ago | |
2 |
This is totally IRRELEVANT for geeks who have no time to chill, only for Fandoms. I REPEAT ONLY FOR FANDOMS, Listen to this guy's, it'll really help yall and make all of yall happy. Leave the feedback below https://m.youtube.com/watch?v=-NEhCS6jvgs |
|
asked by Leander Vikram (eldiablo0829) 6 years ago | |
5 |
Name the keyword that distinguishes between local variable and instance variable. Is the answer is 'this' or 'static'? |
|
asked by Ragini Jain (adityajain1234) 6 years ago | |
7 |
Yaar.. any Yoga students?? |
|
asked by Aarushi12 (aarushi90) 6 years ago | |
4 |
Page 50 |
ICSE chat