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

What's the use of static guys?
asked by Leander Vikram (eldiablo0829) 6 years ago
3
The bodyless loop whose function in the book is given that"It is used to create delay" is actually not taken as a delay for humans as the i9 7980x processor overclocked at 4.6GHz processes it so quickly that hardly i can see any delay
but if you actually want a delay u can use



Thread.sleep(1000);//here 1000 means 1 second delay 


time is given inside the brackets is in milli-seconds

but whenever u use it dont forget to wrap this function with try-catch block




try{
Thread.sleep(1000);
}
catch(InterruptedException e){
System.ot.println("Technical Problem");
}






NOTE:Strictly not for exam purpose
asked by Rishi dey chowdhury (rishidc) 6 years ago
3

+ 1 more questions by rishidc  

guys watch this till end i assure u it will not waste ur time 
https://www.youtube.com/watch?v=dqTTojTija8
asked by Rtstud (mdarfath) 6 years ago
2

+ 2 more questions by mdarfath  

To get a random integer in the range [min, max),
int randomInt(int min, int max) {
    return Math.floor(min + (Math.random() * (max - min)));
}

To get a random double in range [min, max):
double randomDouble(int min, int max) {
    return min + (Math.random() * (max - min));
}
asked by Shreyas Minocha (shreyasminocha) 6 years ago
1

+ 1 more questions by shreyasminocha  

Not exam related:












Does anyone watch South Park?
asked by Pavan K Srinivasan (throwaway) 6 years ago
0
into m,n,p,q= 0;
for(m=2;m<=3;++m)
{
    for(n=1;n<=m;++n)
         { 
              p=m+n;
              if(p%3==0)
              q=q+p;
              else
              q=p+4;
           }
    }
System.out.println("Q="+q);
asked by Abhinav Sharma (monstercat) 6 years ago
1
Any Whovians here??
asked by Gargie D'souza (gar_d02) 6 years ago
2
Guys all of you must have faced the problem of printing a particular array as it requires the user to type out another for loop which is time consuming tedious and boring
heres a trick but u ll have to import java's utilility package by import java.util.*
just say u wanna print array named arr
type :- System.out.println(Arrays.toString(arr));
the output is like this : [a,b,c,d] try this one out
asked by ⚡The Flash⚡ (devanshu8) 6 years ago
2
If z=13,y=10,a=100.
Find a/=z++ + ++z*(- -y  -  y- -)%3 + z++ - ++y;
asked by Tiara Elizabeth (thejtthomas) 6 years ago
2
is Math.random(), shift and bitwise operators included in the syllabus?
asked by Ashutosh Dash (ashutosh_dash) 6 years ago
1

<< Prev

    Page 146    

Next Page >>

ICSE chat

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