Take an array of names as input from the user and print them on the screen.import java.util.Scanner; /** * Link4 */ public class Link { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int size = sc.nextInt(); String names[] = new String[size]; //for inpu...Apr 3, 2023·1 min read
Write a code to find out the condition by if-else loop.import java.util.Scanner; public class App { public static void main(String[] args) throws Exception { try (Scanner sc = new Scanner(System.in)) { System.out.println("Give an age"); int age = sc.nextInt(); ...Mar 15, 2023·1 min read
Make a program that prints the table of a number that is input by the user.import java.util.Scanner; public class App { public static void main(String[] args) throws Exception { try (Scanner sc = new Scanner(System.in)) { System.out.println("Give a number to print a table"); int num = s...Mar 15, 2023·1 min read
Make a program that takes the radius of a circle as input, calculates its radius and area and prints it as output to the user.import java.util.Scanner; public class App { public static void main(String[] args) throws Exception { int radius; double area; try (Scanner sc = new Scanner(System.in)) { System.out.println("Give radius ...Mar 15, 2023·1 min read