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

34 Likes

Answer

(a) public static void main(int variable_name)

(b) public static void main(float variable_name)

Answered By

24 Likes


Related Questions