Ask a New Question
System.out.println("bc" + 2 + 3)
public class PrimeNumbers {
public static void main(String[] args) { int x = 100; for(int i=2; i <= x; i++) { if(i%2==0)
1 answer
asked by
Jake
544 views
Scanner scan = new Scanner(System.in);
Long x = null; Long y = NaN; System.out.println(x + y); System.out.println("Enter
1 answer
55 views
1 public class testOperators
2 { 3 public static void main(String[] args) 4 { 5 int x; 6 int y = 12 7 double z = 13.0; 8 x = 14 9
1 answer
asked by
SCCC
508 views
Why does my try/catch statement gives me an input mismatchexception error and kills the program?
try { System.out.println("enter
0 answers
asked by
Levi
527 views
public class SwitchCases {
public static void main(String[] args) { Scanner input = new Scanner (System.in);
1 answer
asked by
anonymous
682 views
Which of the following is / are valid code?
a) System.out.println(Integer.add(2,2)); b) Float[] ar= new Float[] { new Float(1.0),
2 answers
asked by
JWalker
935 views
Consider the following code.
public void printNumbers(int x, int y) { if (x < 5) { System.out.println("x: " + x); } if (y > 5) {
1 answer
asked by
...
826 views
What is printed by the following program?
var numApples = 10; var numOranges = 5; if(numApples < 20 || numOranges == numApples){
1 answer
asked by
joe
101 views
What is printed by the following program?
function printNumbers(two, one, zero){ println(two); println(one); println(zero); }
1 answer
76 views
What are the parameters of the printNumbers function?
function printNumbers(first, second, third){ println(first);
1 answer
asked by
joe
111 views