Search:

Type: Posts; User: BlackShadow

Search: Search took 0.27 seconds.

  1. Re: Needing some help with array getter and setter methods!!

    So it looks like it works so long as I change the parameter positions in my set and getValue methods.
  2. Re: Needing some help with array getter and setter methods!!

    Here is code 1 without the main:


    import java.awt.*;
    import java.util.Random; //for our random number generator

    public class StatsArray
    {
    private int size; //how big is the array...
  3. Re: Needing some help with array getter and setter methods!!

    You mean like this??

    this.stats[position] = value;

    I'm still only getting zero.... :/
  4. Re: Needing some help with array getter and setter methods!!

    Okay thanks, but now I have a problem with my Stats Array Tester class in trying to get my methods to work right. I keep getting a zero for my output in whatever I input as my supposed position and...
  5. Needing some help with array getter and setter methods!!

    Hello, hello. So I am having some challenges with trying to set an array up with setting values at a position of the array. My array size is 10. *see code below* but I have some getter and setter...
  6. NEEDING HELP UNDERSTANDING A CODE FROM THREE CLASSES!!!

    Hello everyone! So I am rather new to Java Programming, still trying to get the hang of using concepts like arrays, objects, constructors, and creating new methods. I'm needing someone to help me...
  7. NEEDING HELP UNDERSTANDING A CODE FROM THREE CLASSES!!!

    Hello everyone! So I am rather new to Java Programming, still trying to get the hang of using concepts like arrays, objects, constructors, and creating new methods. I'm needing someone to help me...
Results 1 to 7 of 8