


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
java codes and cheat sheet basics for learning java language
Typology: Cheat Sheet
1 / 4
This page cannot be seen from the preview
Don't miss anything!
System.out.println([text]) Will print something to the output console.
Can be used for concatenation. (ex. "6" + [var_here]) 35. public static void main(String[] args) This is your main function and your project will start in here. 36. System.out.print([text]) This prints stuff but there is no line break. (/n) 37. \n Called a line break; will print a new line. 38. \t This will print a tab. 39. if ([condition]) This will make it so if [condition] is true then it'll keep going. 40. && This means and. 41.! This means not. 42. || This means or. 43. == This means equal to.
This means less than.
This means greater than.
= This means greater than or equal to.
[inputVarHere].hasNextLine () This will return if there is a next line in the input.
[caller].hasNextdatatype