Creating more useful Java programs will likely require you to work with several additional types of data. Let's explore a few of them.
The first data type we will use is int.
int is short for integer, which are all positive and negative numbers, including zero. This number could represent the number of visits a website has received or the number of programming languages you know.
The int data type only allows values between -2,147,483,648 and 2,147,483,647.
สร้างโปรแกรมจาวาที่มีประโยชน์มากอาจจะต้องให้คุณทำงานกับข้อมูลชนิดอื่น ๆ สำรวจกี่ของพวกเขาชนิดของข้อมูลแรกที่เราจะใช้เป็นของดอกเบี้ยint จะสั้นสำหรับจำนวนเต็ม ซึ่งเป็นค่าบวก และค่าลบตัวเลขทั้งหมด รวมทั้งศูนย์ หมายเลขนี้อาจแสดงถึงจำนวนการเข้าชมเว็บไซต์ได้รับหรือจำนวนของภาษาเขียนโปรแกรมที่คุณรู้ชนิดข้อมูลแบบ int เพียงได้ค่าระหว่าง-2,147,483,648 และ 2,147,483,647
การแปล กรุณารอสักครู่..
