So it looks like it works so long as I change the parameter positions in my set and getValue methods.
Type: Posts; User: BlackShadow
So it looks like it works so long as I change the parameter positions in my set and getValue 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...
You mean like this??
this.stats[position] = value;
I'm still only getting zero.... :/
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...
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...
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...
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...