public class EqualityOperators {
public static void main(String[] args) {
System.out.println(true != false);
}
}
Quotes help make search much faster. Example: "Practice Makes Perfect"
Thursday, October 29, 2015
Codecademy > Learn Java > Relational Operators Sample Solution
public class RelationalOperators {
public static void main(String[] args) {
System.out.println(3 < 7);
}
}
public static void main(String[] args) {
System.out.println(3 < 7);
}
}
Codecademy > Learn Java > Math: %
//Sample Solution
public class Modulo {
public static void main(String[] args) {
int myRemainder = 6 % 4;
System.out.println(myRemainder);
}
}
public class Modulo {
public static void main(String[] args) {
int myRemainder = 6 % 4;
System.out.println(myRemainder);
}
}
Codecademy > Learn Java > Math: +, -, *, and /
//Sample Solution
public class Arithmetic {
public static void main(String[] args) {
int myNumber = 3 * 7;
System.out.println(myNumber);
}
}
public class Arithmetic {
public static void main(String[] args) {
int myNumber = 3 * 7;
System.out.println(myNumber);
}
}
Codecademy > Learn Java > Comments Sample Solution
public class Comments {
public static void main(String[] args) {
//System.out.println("Noise!");
/*
anything you like!
*/
}
}
public static void main(String[] args) {
//System.out.println("Noise!");
/*
anything you like!
*/
}
}
Codecademy > Learn Java > Whitespace Sample Solution
public class WhiteSpace {
public static void main(String[] args) {
boolean isFormatted = false;
System.out.println(isFormatted);
}
}
public static void main(String[] args) {
boolean isFormatted = false;
System.out.println(isFormatted);
}
}
Codecademy > Learn Java > Variables Sample Solution
public class Variables {
public static void main(String[] args) {
int myNumber = 42;
boolean isFun = true;
char movieRating = 'A';
}
}
public static void main(String[] args) {
int myNumber = 42;
boolean isFun = true;
char movieRating = 'A';
}
}
Subscribe to:
Posts (Atom)
This is an example of scrolling text using Javascript.
Popular Posts
-
favorite_animal ||= "dog" favorite_animal ||= "cat"
-
<!--sample solution--> <html> <head> <title>Week 13 Project</title> </head> ...
-
$("#tours > li")
-
Answer: Alt - p p stands for previous. If you keep pressing Alt - p, you will continue cycling back through commands you typed before. I...
-
//sample solution var yourName = "Pam"; var gender = "female"; var result; //Line 10 starts an if statement //Ne...
-
<!-- Sample solution to index.html --> <!DOCTYPE html> <html> <body> <div class="nav"> ...
-
//sample solution def isEven(x): if(x % 2 == 0): return "yep" else: return "nope"
-
<html> <head> <!-- Add the Parse SDK here! --> <script src="http://www.parsecdn.com/js/par...
-
#sample solution hungry = false unless hungry puts "I'm writing Ruby programs!" else puts "Time to eat!...
-
$(document).ready(function(){ $("#filters").on("click", ".on-sale", function(){ $(".tour")....