Whats wrong in this program public class Homework_1_a { public static void main(String args[]) { int basic; int tax; if(basic<=100000) tax=0; else tax=(0.1*basic); } }
Answers
Answered by
1
Answer:
public - it is access specifier means from every where we can access it. static - access modifier means we can call this method directly using class name without creating an object of it. void - its the return type. main - method name. string [] args - in java accept only string type of argument and stores it in a ...
Explanation:
String[] args in Java is an array of strings which stores arguments passed by command line while starting a program. All the command line arguments are stored in that array. ... public static void main(String[] args) { for(String str : args) { System.
Similar questions