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

Publicado el: 28 marzo 2021
en el canal de: 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.


En esta página del sitio puede ver el video en línea Taking Input From User Via Console. Dealing with Primitive Variables and String type || Java || de Duración hora minuto segunda en buena calidad , que subió el usuario Java101 28 marzo 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 49 veces y le gustó 4 a los espectadores. Disfruta viendo!