Trending ▼   ResFinder  

ICSE − Q & A

ICSE
Indian Certificate of Secondary Education (ICSE), New Delhi
+Fave Message

Ask a Question

Answer a Question!

ResFinder - Thousands of Practice Papers

Can anyone please explain how to overcome NZEC error in this code.
import java.util.*;
public class Main
{
    public static void main(String args[])
    {
        String h;
        int p;
     Scanner sc=new Scanner(System.in);
     int t=sc.nextInt();
     int i;
     for(i=0;i<t;i++)
     {
         int ans=0;
         int n=sc.nextInt();
         int y=n*n;
         String s=sc.next();
         char x=sc.next().charAt(0);
         String arr[]=new String[y];
         int j,k,z=0;;
         for(j=0;j<n;j++)
         {
             String a="";
             for(k=j;k<n;k++)
             {
                 a+=arr[k];
                 if(z<=n*n)
                 {
                     arr[z]=a;
                     z++;
                 }
             }
         }
         for(j=0;j<y;j++)
         {
             h=arr[j];
             p=h.length();
             for(k=0;k<p;k++)
             {
                 char r=h.charAt(k);
                 if(x==r)
                 {
                     ans++;
                 }
             }
         }
         System.out.println(ans);
     }
    }
}
asked by Bitthal Maheshwari (bitthal04) 5 years ago
3

+ 2 more questions by bitthal04  

I'm saying this because of lack of REAL activity over here....
Resusers as avenger characters?
asked by Mr. Mathematics (aditya_bandaru) 5 years ago
10

+ 6 more questions by aditya_bandaru  

What questions from which chapter are asked in entrance exams ?
asked by Ansh Anand (teleansh) 5 years ago
2

+ 5 more questions by teleansh  

So guys LINK MASTER HERE... so any of u guys who are getting bored or Wants total mobilization of their brains and logical question kindly refer to the link given below in than red box.....

Maybe it could free u from your boredom.......
Refer below
asked by Annhaliator (laxyone) 5 years ago
1

+ 1 more questions by laxyone  

I am confused about 1 thing. What is the difference between biswa saha, prateek gurjar, godblessme  ???
asked by ICSE Preparer (icsepreparer) 5 years ago
3

+ 1 more questions by icsepreparer  

Hey Friends, I know I'm writing this really late, but I was kinda busy and keep forgetting to do the same. I ain't a writer as good as Uncle Sam, so please bear with me. 
I'm feeling nostalgic already. I'll miss all my friends, my teachers who were annoyed by me, and of course, many of you who have already left Res/gonna leave Res. 

I still dwell upon those days, when my Chemistry Teacher called me on the board to write an Equation, which I had no idea about. My friend sitting in the front quickly copied the equation on the piece of paper and handed it over to me while I'd walked over to the board. Then my teacher used to catch me, and I was sent out of the class. This happened 2-3 times, never had I learnt a lesson. 
I remember those days, when 4 of us used to eat Oreo during class hours. I caught the teacher's attention, and pointed to my friend who was eating, and then while the teacher was screwing him, I enjoyed my biscuit. 
I remember those days, when I came to Res, and started to talk to you guys. I've had such amazing cum fun days here on Res. Now, it's all gone as many of us have left Res.
Also, here at Res, 
I've had a friend who used to boast off about anything he could get a chance at. He "never left an opportunity to flex"...yet, he was one of my best friends, and we had solved many papers together. We had chatted a LOT in the inbox. 

I've had an elder sister who used to force me to go and study. She tried to hide her name from me, for a long time, but then I used some tactics and go to know her name. She is my didi. 

I've has a friend, who strongly believed that love does not exist. But, he has a "true love" towards Mathematics(Irony, right?). We've solved a few papers together, had a nice time in the inbox and chats, and did pretty creative things together(Like linking the people on Res to Harry Potter characters)

I've had a friend, who was always seemed to be hopeless about her studies. She thought she was weal at it, and seemed depressed. She's asked a lot of general doubts here on Res, and was pretty humerous. 

I've had a elder friend cum uncle, who was a savage guy. He used to mercilessly roast his enemies. Yet, he's undoubtedly the most helpful person here on Res. He's caught me spamming also(Yes, I'm the "idontknow56"....Sam was 1st to realize that)

I've had a friend, who was really excited to know "how to propose" and "how's your gf"...ultimately, I had had to block him. But as present, we're friends again. 

I've had a friend who was undoubtedly the best Res_Artist. His drawings were literally out of the world(Or rather, out of the res_world). He has his own AWESOME sites, like icsehub.com. 

I've had a critic, who used to simply mention "wrong" to most of my answers, especially and only in Computers, without telling me the correct answer. Nevertheless,  we're friends now. 

I've had a friend cum enemy(read also: entertainer), against whom I've always had a fight. He had blindly critisized about my Blog(Some of them were valid, though...thanks for pointing them out) He's been instrumental in lightening up my mood, because whenever I fought with him, it gave me a lot of pleasure to roast him...Thanks!

I've had a group of friends, who simply used words like "nigga", and always called each other "scholurs", whenever they'd got the slightest opportunity. Nonetheless, they're all really smart, all 3 of them, and knew a lot of stuff. They also helped in lightening up my mood with their silly fights and words. 

If you've read till here and have successfully survived, I'd really like to appreciate your patience. God, how I'll miss all of you. You're all such a good family!

Ending this post, I'd like to THANK YOU all for all that you've done for me. May you be successful in every advent of life, and, more important than that, I hope you all stay happy and make sure that others near you are also always happy. The only reason I used to act like an idiot in ICSE hangouts was so that you'd all have a smile on your faces! Hope I see you people...soon. 
Thanking you,
Dr. Rikhil Gupta
Hope I see you people..
asked by Rg (rikhil32) 5 years ago
8
explain giving any two reasons why the deltas of the river Mahanadi suffer from occassional floods
asked by Deyasini Roy (riyadeyasini) 5 years ago
5
Resonates, I got an information from chief commando operators. They say that the D-Day and Dread Day is on 13th. So be arm'd (spiritually as well) 
Sending worst wishes,
Obviously me.
asked by Aryan Gupta (xprince) 5 years ago
6
This res Q/A page is really a periodic one. Like the sine and cosine functions.. xD
The events unfolded the same manner as they did,last year. The same way this page was flooded with questions and posts, the same kinda friendship between the "Ressers", the same kinda joy eveyone's experiencing after the end of boards, the same way some people are asking others to come back during results, all this, just like last year. AMAZING!  And I also believe that after some days or weeks- whatever, there will be predictions by some people of the result date.I'm really glad to see you guys breaking the shackles of boards and now, finally might be able to enjoy freedom. Don't let any kind of "joyspoiler", enter your freebee mind for some weeks. Enjoy life like its gonna end tomorrow( if you want a serious rank in exams like JEE,then you guys might start preparations after some weeks...)  And believe me, 11th is gonna be fun too! My joy was of next level, during my time! And it must be! Come on, you guys are over with a really significant public exam of your lives. And now, you carry the experience which you can share with the coming batch of ICSE. You guys worked hard, if not throughout the year, then during boards and it will pay the result proportionally(for now, don't overthink regarding the results). I'm a 2k18 ICSEian and very less do I appear here, since class 11th began. so, many of you might not know me. MY BEST WISHES WITH YOU ALL, STAY HAPPY, STAY BLESSED!! This is a really wonderful phase of your life, you'll understand this next year! Ba-byeeee!!
asked by Aayush Joshi (aayushjoshi) 5 years ago
4
RES FAMILY!!!!!
I'm so glad I got to be a part of this! Thanks to all of y'all for EVERYTHING. I know for a fact that I'm gonna keep returning to this wonderful site. Thank you, the creators of ResPaper for this. I know we all will move on, and few of us might just stay back for a year or two.
I just wanna wish all of y'all BEST OF LUCK in ALL your future endeavours. 
And one last thing, Stay Connected! Here are few of my social media IDs-
Instagtam- hxrjxs
Snapchat- harjas_22
Pubg(ya this is random but why not)- HarjasBajaj
Taking leave, 
Yours truly,
Harjas Bajaj.
asked by Harjas Bajaj (jammy229) 5 years ago

<< Prev

    Page 336    

Next Page >>

ICSE chat

© 2010 - 2024 ResPaper. Terms of ServiceContact Us Advertise with us