Ch5 Input in Java
This video is about how to accept input in java? By initialisation : data before execution - e.g. int a=5; By Input stream : data entry during execution ( Scanner class ) ( Introduction of package : util ) Scanner class methods : nextShort() , nextInt() , nextLong() ,nextFloat() , nextLong() ,next( ), nextLine() , next().charAt(0) Types of errors : Syntax error , Runtime error , Logical error ( with enough examples ) Types of comments : single line ( // ) , multiline (/* ……………. */)
This video is about how to accept input in java? By initialisation : data before execution - e.g. int a=5; By Input stream : data entry during execution ( Scanner class ) ( Introduction of package : util ) Scanner class methods : nextShort() , nextInt() , nextLong() ,nextFloat() , nextLong() ,next( ), nextLine() , next().charAt(0) Types of errors : Syntax error , Runtime error , Logical error ( with enough examples ) Types of comments : single line ( // ) , multiline (/* ……………. */)