what is java
Coding language
how to assign values to a variable
= sign
What do methods usually do?
Run repeatable code and sometimes return things
int x = 1; System.out.print(x==1);
What does this print out?
true
name the presidents of the club
nityer and alex
what does (almost) every statement end with
;
what is a variable (don't say x)
something that stores a value
public static [x] [y]([z] [w]) {}
What do you put in position w?
parameter name
What is the difference between = and ==?
= is assignment
== is comparison
Which country is the leading spender on the military in the world?
US
how to print to the console
System.out.println();
what is the datatpye of this:
"Hello"
String
Will this compile?
public static String method1(int x) {
return x + 5;
}
No
What does this print out?
int x = 100;
if (x > 50) {
System.out.print("x");
}
if (x > 90) {
System.out.print("y");
}
xy
What is the second letter of the second sentence in Tips in the second prompt of the second file in Java Koans?
- t
- i
- a
- r
t
List all the uses of the + operator
addition
String concatenation
Assignment/Replacement (x = 0;)
Self Addition (x = x + 1;)
Arithmetic Assignment (x *= 2;)
Can you call other methods inside a method?
Yes
a && (b || c && a)
what does this return if a, b, c are true, false, true
true
What is the 67 kid's name
Maverick Trevillian
what are datatypes and give 3 examples
Designate the type of variable
int, String, boolean, double, etc.
Which statements will compile?
a. String x = Hello;
b. int x = Integer.parseInt("100-99");
c. String y = readLine();
int x = Integer.parseInt(y);
d. int x;
System.out.print(x==x);
c
What is calling a method in itself called?
Recursion
!c == b || !(c && b)
Can this possibly return true?
Yes
b and c are false
What is the background sentence said in the chorus of diddyblud on the calculator
What is this diddyblud doing on the calculator, is blud Einstien (------)
banana phone ding ding dong