Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Helph

  1. #1
    Junior Member
    Join Date
    Mar 2014
    Location
    Honduras
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Post Helph

    I have 3 classes in java and got my fix and nesecito find the name of my class, but I pulled the following error

    error.jpg

    this is the kind where I'm putting my arrangement
    class Administrar{
    MiDinero admin[] = new MiDinero[20];
    //cuentas
    public void administrarcuentas(int efectivo,int banco ,int pos){
    this.admin[pos] = new MiDinero(efectivo,banco);
    }
    /*
    public void administrargastos(int pos){
    this.admin[pos] = new MiDinero();
    }
    */
    //gastos
    public void administrargastos(int categorias, String nombrec ,int pos){
    this.admin[pos] = new MiDinero(categorias,nombrec);
    }
    //ingresos
    public void administraringresos(float categorias,String nombrec, int pos){
    this.admin[pos] = new MiDinero(categorias,nombrec);
    }

    //Calculos
    public String buscaringresos(String nombrebuscar){
    for(int i=0; i<admin.length;i++){
    if(admin[i].cingresos==nombrebuscar){
    System.out.print("si existe");
    }else{
    System.out.print("No existe");
    }
    }
    return nombrebuscar;
    }
    public String buscargastos(String nombrebuscar){
    for(int i=0; i<admin.length;i++){
    if(admin[i].cgastos==nombrebuscar){
    System.out.print("si existe");
    }else{
    System.out.print("No existe");
    }
    }
    return nombrebuscar;
    }
    }

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Helph

    Please edit your post and wrap your code with code tags:
    [code=java]
    YOUR CODE HERE
    [/code]
    to get highlighting and preserve formatting.

    To copy the contents of the command prompt window:
    Click on Icon in upper left corner
    Select Edit
    Select 'Select All' - The selection will show
    Click in upper left again
    Select Edit and click 'Copy'

    Paste here.
    If you don't understand my answer, don't ignore it, ask a question.