Java Code Refactoring: Improving Code Quality in Your IDE
Your IDE isn’t just for coding—it’s your smartest refactoring ally.
About this course
Working code isn’t always good code, especially if it’s hard to read, hard to change, or hard to trust.
This course teaches you how to identify code smells and improve Java applications using powerful, automated refactoring tools built into IntelliJ IDEA.
Your result: cleaner, more maintainable Java code and the skills to use your IDE to refactor, scale, and structure code like a professional software engineer.
This course runs directly in your JetBrains IDE
Content
- Introduction
- JoinOurDiscordCommunity
- Getting to know you
- Introduction
- What is code refactoring?
- Common code issues and their impact on code quality
- Refactoring techniques
- Getting familiar with IDE refactoring features
- Practice
- Introduction
- What is formatting?
- Code schemas and EditorConfig
- Introduction
- Naming rules
- Rename refactoring in IDE
- Introduction
- Cohesion and coupling
- What is Move refactoring?
- What are Pull Up and Push Down refactorings?
- Introduction
- What is Extract Method refactoring?
- What is Extract Variable refactoring?
- Introduction
- What is Inline Variable refactoring?
- What is Inline Method refactoring?
- Middle Man code smell
- Introduction
- Design patterns and their relationships with refactoring
- Facade Pattern - Theory
- Facade Pattern - Practice
- Strategy Pattern - Theory
- Strategy Pattern - Practice
- Factory Method Pattern - Theory
- Factory Method Pattern - Practice
- Conclusion
- Feedback survey
Learn with the tools developers use every day
What do you need to start?
The JetBrains Toolbox App 2.7+ makes setting up your course effortless. Already have a compatible IDE? It will launch it. If not, the app will install the right free IDE for your course.
Learn more about our licences here.
Click Launch course and then Allow to open the Toolbox App.
Select Always Allow to skip this confirmation in the future.
To return to the course later, find it in your IDE's recent projects.
Need more help? Check out our guide.
The JetBrains Toolbox App 2.7+ makes setting up your course effortless. Already have a compatible IDE? It will launch it. If not, the app will install the right free IDE for your course.
Learn more about our licences here.
Click Launch course and then Allow to open the Toolbox App.
Select Always Allow to skip this confirmation in the future.
To return to the course later, find it in your IDE's recent projects.
Need more help? Check out our guide.
FAQ and troubleshooting
Yes, you will need the JetBrains Toolbox App and a JetBrains IDE.
But don't worry! Just click the Open course button and then select Allow in the resultant popup to install the JetBrains Toolbox App. We've taken care of all the necessary settings, and the app will handle the rest of the setup for you.
The JetBrains Toolbox App checks which IDE is compatible with your course and whether it is installed on your computer. If you have the necessary IDE installed, the app will open it. If not, JetBrains Toolbox will initiate the installation, prioritizing free community editions.
Yes, the JetBrains Toolbox App is essential even if you already have a JetBrains IDE. It automatically prepares your IDE for studying by installing the essential plugins and updating the IDE if necessary.
Please make sure your version of the JetBrains Toolbox App is 2.6 or newer. To update, open the app and click Update Toolbox App to 2.6.x., or download the latest version here.
Yes! It's 100% free and works with both the free and paid versions of JetBrains IDEs.
If you're a student, apply for the Student Pack to get full access to JetBrains IDEs for the duration of your studies. If not, check if you qualify for a free non-commercial license.