Search:

Type: Posts; User: valam

Search: Search took 0.10 seconds.

  1. Replies
    5
    Views
    1,290

    Re: Remove a number from a stack

    Hi Greg!
    I was able to do it as you said, I built my stack without the usage of collections and worked great! Thanks for the tip, drafting it in paper worked for me.

    I am now having an issue...
  2. Replies
    5
    Views
    1,290

    Re: Remove a number from a stack

    Hi Greg!

    Ok! I understand what you are saying and trust you that it is an infinite loop (no wonder why the CPU usage is 100% haha), I thought that while (pila.peek() != n || pila.isEmpty()) this...
  3. Replies
    5
    Views
    1,290

    Remove a number from a stack

    Hello! I am pretty new to java, so pleasee be patient with me :o !!

    Ok, so I am trying to remove a value from a stack that is not in the top of the stack using only stacks, so I basically created...
  4. Thread: Array

    by valam
    Replies
    12
    Views
    1,147

    [SOLVED] Re: Array

    yeiiii!!!, it was a simple mistake, but a HUGE mistake too... !! THANK YOU!!...

    I removed the loop I had, it was increasing the number i entered, so it was not helping at all....




    public...
  5. Thread: Array

    by valam
    Replies
    12
    Views
    1,147

    [SOLVED] Re: Array

    package Trabajo;

    import javax.swing.JOptionPane;


    public class Asignaturas {

    String matrizAsignaturas[];

    public int Programa;
  6. Thread: Array

    by valam
    Replies
    12
    Views
    1,147

    [SOLVED] Re: Array

    Ok, so I think I am pretty confused here... At the begining I wanted to create a 2D array, now thanks to your comments I realized it was actually 1D, and I fixed that already...

    Now, what I trying...
  7. Thread: Array

    by valam
    Replies
    12
    Views
    1,147

    [SOLVED] Re: Array

    Thank you all for your answers...

    I think I see where the problem is... I will be back in a few after I try :)

    @jps You are right, I shouldn't be doing that. What exactly is the return...
  8. Thread: Array

    by valam
    Replies
    12
    Views
    1,147

    [SOLVED] Array

    Hello!

    I am pretty new with java, I've been reading about it the last month and well I am practicing, so please be patient with me!

    So, I have this array matrizAsignaturas and I am trying to...
Results 1 to 8 of 8