
And of course learn about it.
Share your knowlegde with each other! Spread JAVA! And learn how to use JAVA Into your advantage.
But first shouldn't you learn the basics likeLobby wrote: ↑25 Aug 2017, 14:29Java is just a language. You have to use libraries to actually show something to your screen other than a command line. For Android, there's the Android SDK by Google which is really powerful but also not that easy to use. However, it allows you to point and click your UI which is useful at the beginning (you may have to use Android Studio to do so).
Your own?
Yes
OFF TOPIC:Lobby wrote: ↑25 Aug 2017, 14:29Java is just a language. You have to use libraries to actually show something to your screen other than a command line. For Android, there's the Android SDK by Google which is really powerful but also not that easy to use. However, it allows you to point and click your UI which is useful at the beginning (you may have to use Android Studio to do so).
Code: Select all
public class Program {
public static void main(String[] args) {
//by Josh, have a nice day!
int number = 1;
//choose your number
if (number > 0) {
System.out.println("Higher than 0");
}
if (number < 0){
System.out.println("Lower than 0");
}
}
}
Code: Select all
public class Program {
public static void main(String[] args) {
//by Josh, have a nice day!
int numberOne = 1;
//choose your first number
int numberTwo = 0;
//choose your second number
if (numberOne > numberTwo) {
System.out.println("Number one is higher than number two");
}
if (numberOne < numberTwo){
System.out.println("Number two is higher than number one");
}
}
}
Code: Select all
public class Program {
public static void main(String[] args) {
//by Josh, have a nice day!
int age = 18;
//choose your age
int money = 500;
//choose how much money you have
if (age > 18 || money > 500) {
System.out.println("Welcome!");
}
if (age == 18 || money == 500) {
System.out.println("Welcome!");
//Haha I got you Lobby :)
}
if (age < 18 || money < 500) {
System.out.println("Sorry but you are not allowed!");
}
}
}