June 2018
Beginner
722 pages
18h 47m
English
Let's now create another package, com.packt.javapath.math, and the SimpleMath class in it. The reason for this is that in the future, we plan to have several, similar math-related classes in this package, and other, non-math-related classes in other packages.
In the left pane, right-click on the com.packt.javapath.ch04demo package, select New, then click Package. Type math in the provided input field, and click the OK button.
Right-click on the math package name, select New, then click Java Class, type SimpleMath in the provided input field, and click the OK button.
You should have created a new SimpleMath class that looks like this:
Read now
Unlock full access