| Ask a Question | Answer a Question! | 

 Submitting your question... 
 
 
ResFinder - Thousands of Practice Papers
| In how much time do you plan to complete your Computer paper's section A? |  | 
| asked by Shreyas Minocha (shreyasminocha) 7 years ago | 
| 2 | 
| Oh! I have a trick for arrays too.
lets assume we have an array named arr
then 
for(i:arr)
{
System.out.println(i);//Here i have just printed the elements but you can do anything
}
//Here each time when the loop runs the i contains the next element of the array cell
which means if arr[] would be{1,7,10,99,-10}
i will have the value 1 in first execution of the for loop
then i will have value 7 in next loop and so on....
comment if you liked?
NOTE:Strictly not for exam purpose |  | 
| asked by Rishi dey chowdhury (rishidc) 7 years ago | 
| 3 | 
| 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) 7 years ago | 
| 1 | 
| 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) 7 years ago | 
| 2 | 
| If z=13,y=10,a=100.
Find a/=z++ + ++z*(- -y  -  y- -)%3 + z++ - ++y; |  | 
| asked by Tiara Elizabeth (thejtthomas) 7 years ago | 
| 2 | 
| is Math.random(), shift and bitwise operators included in the syllabus? |  | 
| asked by Ashutosh Dash (ashutosh_dash) 7 years ago | 
| 1 | 
| Just thought I would share as a similar question came in our prelims :
 String s = "hi";
 System.out.println(s.indexOf("1"));
Output for this is -1 |  | 
| asked by Rohan Gupta (rohang37) 7 years ago | 
| 3 | 
| Check this out: |  | 
| asked by Darth Vader (aj87) 7 years ago | 
| 6 | 
| Pls sum1 explain me about class ,instance and local variables and methods |  | 
| asked by Kousalya Senthilkumar (laks2002) 7 years ago | 
| 1 |