KnowledgeBoat Logo

Computer Applications

Write down the syntax of the following with reference to Java Programming:

(a) to accept an integer value using main( )

(b) to accept a fractional number using main( )

Input in Java

43 Likes

Answer

(a) public static void main(int variable_name)

(b) public static void main(float variable_name)

Answered By

29 Likes


Related Questions