cannot find symbol
symbol: constructor Contacto(java.lang.String,int,boolean)
location: class Aula_Teo.Contacto
I think this means that you had an inner class called string, and maybe you...
Type: Posts; User: javapenguin
cannot find symbol
symbol: constructor Contacto(java.lang.String,int,boolean)
location: class Aula_Teo.Contacto
I think this means that you had an inner class called string, and maybe you...
if (c.isMovel()==true)
Actually, boolean method can be written
if (c.isMovel())
if checking to see if true
and
Java already has a class called String, with a capital S. You don't need to write your own, unless you have to.
for(int i=0;i<5;i++){
agenda[i]=insereContacto();
scan.nextLine();
conta++;
}
do you mean i < 50?
Otherwise, there will be 50 agenda, but only 5...
scan.nextLine();
This scans but doesn't set it to anything.
String str = "";
and then later
str = scan.nextLine(); will at least set it to something
Your inner class string does nothing.
Does tipo mean type?
conta was never defined as a variable in the main method, at least not before you used it, so it won't know what to do with it.