Ask a Question | Answer a Question! |

Submitting your question...
ResFinder - Thousands of Practice Papers
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 |
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) 6 years ago |
3 |
Pls sum1 explain me about class ,instance and local variables and methods |
 |
asked by Kousalya Senthilkumar (laks2002) 6 years ago |
1 |
Can anyone explain " expulsion " in football? |
 |
asked by Aditi Prasad (pp201540) 6 years ago |
5 |
PLEAse help!!
Explain differnce between local,instance and class variable? |
 |
asked by Onkar Borade (onkarborade) 6 years ago |
1 |
public class sales
{ int invoice=1234;
static pro_code;
public static void main()
{ sales s= new sales();
int price=1000;
s.show(price);
}
void show(int pr)
{ System.out.println(invoice);
System.out.println(pro_code);
System.out.println(pr);
}
}
Name the following from the above code:
(i) class variable // pro_code??
(ii) local variable // price??
(iii) instance variable //invoice??
(iv) method variable // pr??
Are these answers correct? Please help!! |
 |
asked by Shreya Bhagat (hermione02) 6 years ago |
3 |