public class Main
{
public static void main(String[] args)
{
System.out.println("Hello World!");
Scanner input = new Scanner(System.in);
System.out.print("What is your age?: ");
double age = input.nextDouble();
System.out.print("How much money do you have?: ");
double money = input.nextDouble();
if (age >= 18 || money >= 500) {
System.out.println("Welcome!");
} else {
System.out.println("Sorry but you are not allowed!");
}
}
}
import java.util.Random;
import java.util.Scanner;
public class Guess {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
Random rnd = new Random();
int chosenNumber = rnd.nextInt(100);
System.out.println("I just chose a number between 0 and 99. Please guess it.");
while (true) {
System.out.print("Enter your guess: ");
int guess = scanner.nextInt();
if (guess < chosenNumber) {
System.out.println("The chosen number is greater than that");
} else if (guess > chosenNumber) {
System.out.println("The chosen number is smaller than that");
} else {
System.out.println("Congratulations, the chosen number is indeed " + chosenNumber);
break;
}
}
}
}
import java.util.Scanner;
public class Josh
{
public static void main(String [] args) {
Scanner sc = new Scanner(System.in);
int age = sc.nextInt();
int ano = 2017;
System.out.println("You are born in:");
System.out.println(ano - age);
}
}
Finally I give you 1.0.9 Beta version of my app!
Say what you think.
If you have any suggestions, there is feedback button in about section. Thank you Lobby for permission to upload my app. https://drive.google.com/file/d/0B32tv5 ... p=drivesdk