1 Use the Allman Indentation style:
It looks like the above, where the brackets are on a new line. Replit likes to force K&R so watch out for that.
2 Header
The header will be like this:
/**
Author:
Date:
Description:
**/3 No commented-out code
Do not submit code with the backslashes (or it should run even with the backslashes on lines)
4 Pretty math
Add spaces between all arithmetic
int value = (x + 6) / 45 Variable names
All variable names need to have the data type before them
int intValue = 10;
double dblValue = 2.5;
String strPain = "Welcome to jegified land";6 Comment everything
Always describe what a variable does when you declare it (EVERY ONE); don’t just say you declared it
// intJohn is an integer variable to store John's age
int intJohn;7 All scanners shall be named “input”
8 Break? More like i’ll snap your neck in half
- You can only use “break” in switch-cases
9 String methods
They are specified in the notes about Strings