Search:

Type: Posts; User: javapenguin

Search: Search took 0.08 seconds.

  1. Replies
    7
    Views
    1,598

    Re: Possibly a noobish issue

    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...
  2. Replies
    7
    Views
    1,598

    Re: Possibly a noobish issue

    if (c.isMovel()==true)

    Actually, boolean method can be written

    if (c.isMovel())

    if checking to see if true

    and
  3. Replies
    7
    Views
    1,598

    Re: Possibly a noobish issue

    Java already has a class called String, with a capital S. You don't need to write your own, unless you have to.
  4. Replies
    7
    Views
    1,598

    Re: Possibly a noobish issue

    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...
  5. Replies
    7
    Views
    1,598

    Re: Possibly a noobish issue

    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
  6. Replies
    7
    Views
    1,598

    Re: Possibly a noobish issue

    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.
Results 1 to 6 of 6