10
I created inside the same package called Banco
, two classes in Java: ContaSalario
and ContaPoupanca
. When I’m going to import these two classes into my main class, I do:
import Banco.ContaSalario;
import Banco.ContaPoupanca;
Is there any way to import all classes from the same package with a single call? For example:
import Banco.all;
It is worth noting two things here: this is the first time I see two answers being posted in the same exact second :) The other thing to note is that there is no package
Conta
within the packageBanco
:(– Math
no problem, just put the "." + * after the last package you want to import
– Emir Marques