Lesson 1 of 34

നിങ്ങളുടെ ആദ്യ Java പ്രോഗ്രാം

7 min 20 XP

ഓരോ Java പ്രോഗ്രാമും ഒരു class-നുള്ളിലാണ്. പ്രോഗ്രാം main() method-ൽ നിന്നാണ് പ്രവർത്തനം തുടങ്ങുന്നത്. സ്ക്രീനിൽ ടെക്സ്റ്റ് കാണിക്കാൻ System.out.println() ഉപയോഗിക്കുന്നു. താഴെയുള്ള പ്രോഗ്രാം Run ചെയ്യൂ.

Example: edit me and press Run

Output Loading Java (first time takes a few seconds)
Press Run to see the result here.

ഓരോ statement-ഉം ; (semicolon) കൊണ്ട് അവസാനിക്കണം. ടെക്സ്റ്റ് " " quotes-നുള്ളിൽ എഴുതുന്നു, അതിനെ String എന്ന് വിളിക്കുന്നു. { } braces കോഡിനെ blocks ആയി കൂട്ടുന്നു.

Example: edit me and press Run

Output Loading Java (first time takes a few seconds)
Press Run to see the result here.

println() print ചെയ്ത ശേഷം പുതിയ വരിയിലേക്ക് പോകുന്നു; print() അതേ വരിയിൽ തുടരുന്നു. Java case-sensitive ആണ്: System, String എന്നിവ എപ്പോഴും capital S-ൽ തുടങ്ങുന്നു.

Challenge

+20 XP

ഈ രണ്ട് വരികൾ കൃത്യമായി print ചെയ്യൂ: Hello Java I can code!

Output Loading Java (first time takes a few seconds)
Press Run to see the result here.