Starlit Daily

📚 › Java

2. Variables and types

ستتم ترجمة هذا المقال تلقائيًا. يُعرض بالإنجليزية حاليًا.

Java is statically typed: you declare the type before the name. int is a whole number, double a decimal, String text and boolean true or false.

عرض المثال

int age = 20;
System.out.println(age);

← العودة إلى الدورة