public class FirstClass {
}
public class FirstClass {
public static void main(String args[]){
}
}
public class FirstClass {
public static void main(String args[]){
System.out.println("Hello world.");
}
}
public class FirstClass {
public static void main(String args[]){
double a = 4.5;
int b = 4;
double c = a + b;
String d = "4.5 + 4 = ";
System.out.println(d + c);
}
}
import java.util.Scanner;
public class FirstClass {
public static void main(String args[]){
Scanner getIn = new Scanner(System.in);//You Can Name it whatever you want
System.out.println(getIn.nextLine() + " was your input");//You need the .nextLine()
}
}
int x = 3;
if(x == 3)
{
System.out.println("X is 3");
}
else if(x != 3)
{
System.out.println("X doesn't equal 4");
}
int x = 3;
double y = 3.14;
if(x == 3 && y > x){
System.out.println("x is 3 and y is greater than x");
}
int x = 4;
if(x == 3 || x < 5)
{
System.out.println("X is either 3 or is less than 5");
}
int cats, dogs, animals;
cats = 3;
dogs = 4;
animals = cats + dogs;
System.out.println(animals);
int bob = 5;
++bob;
System.out.println(bob);
int bob = 5;
System.out.println(++bob);
int bob = 5;
System.out.println(bob++);
int bob = 5;
System.out.println(bob++);
System.out.println(bob);
if statements
Math Operations
Logics
switch statements + more!
Javascript
C
And Possibly some simple game programming
public class FirstClass {
}
public class FirstClass {
public static void main(String args[]){
}
}
public class FirstClass {
public static void main(String args[]){
System.out.println("Hello world.");
}
}
public class FirstClass {
public static void main(String args[]){
double a = 4.5;
int b = 4;
double c = a + b;
String d = "4.5 + 4 = ";
System.out.println(d + c);
}
}
import java.util.Scanner;
public class FirstClass {
public static void main(String args[]){
Scanner getIn = new Scanner(System.in);//You Can Name it whatever you want
System.out.println(getIn.nextLine() + " was your input");//You need the .nextLine()
}
}
int x = 3;
if(x == 3)
{
System.out.println("X is 3");
}
else if(x != 3)
{
System.out.println("X doesn't equal 4");
}
int x = 3;
double y = 3.14;
if(x == 3 && y > x){
System.out.println("x is 3 and y is greater than x");
}
int x = 4;
if(x == 3 || x < 5)
{
System.out.println("X is either 3 or is less than 5");
}
int cats, dogs, animals;
cats = 3;
dogs = 4;
animals = cats + dogs;
System.out.println(animals);
int bob = 5;
++bob;
System.out.println(bob);
int bob = 5;
System.out.println(++bob);
int bob = 5;
System.out.println(bob++);
int bob = 5;
System.out.println(bob++);
System.out.println(bob);
if statements
Math Operations
Logics
switch statements + more!
Javascript
C
And Possibly some simple game programming
public class FirstClass {
}
public class FirstClass {
public static void main(String args[]){
}
}
public class FirstClass {
public static void main(String args[]){
System.out.println("Hello world.");
}
}
public class FirstClass {
public static void main(String args[]){
double a = 4.5;
int b = 4;
double c = a + b;
String d = "4.5 + 4 = ";
System.out.println(d + c);
}
}
import java.util.Scanner;
public class FirstClass {
public static void main(String args[]){
Scanner getIn = new Scanner(System.in);//You Can Name it whatever you want
System.out.println(getIn.nextLine() + " was your input");//You need the .nextLine()
}
}
int x = 3;
if(x == 3)
{
System.out.println("X is 3");
}
else if(x != 3)
{
System.out.println("X doesn't equal 4");
}
int x = 3;
double y = 3.14;
if(x == 3 && y > x){
System.out.println("x is 3 and y is greater than x");
}
int x = 4;
if(x == 3 || x < 5)
{
System.out.println("X is either 3 or is less than 5");
}
int cats, dogs, animals;
cats = 3;
dogs = 4;
animals = cats + dogs;
System.out.println(animals);
int bob = 5;
++bob;
System.out.println(bob);
int bob = 5;
System.out.println(++bob);
int bob = 5;
System.out.println(bob++);
int bob = 5;
System.out.println(bob++);
System.out.println(bob);
if statements
Math Operations
Logics
switch statements + more!
Javascript
C
And Possibly some simple game programming
Copyright © 2024, NextGenUpdate.
All Rights Reserved.