Taking Input From User Via Console. Dealing with Primitive Variables and String type || Java ||

Published: 28 March 2021
on channel: Java101
49
4

Program to get input from user via console but depicting different variable types for it.


Variable details:
Byte: Size: 1 Byte Range: -128 to 127
Short Size: 2 Bytes Range: -32,768 to 32,767
Int Size: 4 Bytes Range: -2,147,483,648 to 2,147,483,647
Long Size: 8 Bytes Range: –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.


Float: Size: 4 Bytes Precision: 6-7 Digit
Double Size: 8 Bytes Precision: 15-16 Digit


At 1:07 I meant words not numbers. Apologies for that.


Boolean Uses: input.nextBoolean();
where input is your Scanner type reference variable.


On this page of the site you can watch the video online Taking Input From User Via Console. Dealing with Primitive Variables and String type || Java || with a duration of hours minute second in good quality, which was uploaded by the user Java101 28 March 2021, share the link with friends and acquaintances, this video has already been watched 49 times on youtube and it was liked by 4 viewers. Enjoy your viewing!