add line at eof android code example
Example: android studio add line at end of class
Mac
File > Preferences > Editor > General > Ensure line feed at file end on Save
Windows
File > Settings > Editor > General > Ensure line feed at file end on Save