Search:

Type: Posts; User: new2.java

Search: Search took 0.20 seconds.

  1. Replies
    9
    Views
    1,523

    Re: New help using Vector class

    8 original elements. removed one, and then added one. so 8. Put doesn't the vector just create more space automatically?
  2. Replies
    9
    Views
    1,523

    Re: New help using Vector class

    I'm trying, I really I am I really want to learn this. Can you maybe throw me a bone? I put s1 in the same scope. getting no errors on that. Now I am just getting a out of bounds error.



    ...
  3. Replies
    9
    Views
    1,523

    Re: New help using Vector class

    Errors:
    Vector list = new Vector(5);
    Vector is a raw type. References to generic type Vector<E> should be parameterized

    list.set(0,me);
    Type safety: The method set(int, Object) belongs to the...
  4. Replies
    9
    Views
    1,523

    Re: New help using Vector class

    Okay, I tried and this is what I now have.



    public class VectorTest
    {
    public static void main(String [] args)throws IOException
    {
    // DECLARE AND INSTANTIATE A VECTOR CALLED LIST OF...
  5. Replies
    9
    Views
    1,523

    New help using Vector class

    New to using Dynamic Data Structures, Vector classes, and ArrayLists.
    -I have a read in file named Student.dat
    - I have a class called Student
    -I have a class with the main method called...
  6. Re: My loop compiles and seems correct, but gives wrong output.

    Haha its all good. there is 8x8 array of 64 characters. an underscore represents an open space on the checkerboard. R's and B's are not replacing. My loop is asking where there black and open spaces...
  7. Re: My loop compiles and seems correct, but gives wrong output.

    Have you ever played checkers? A red jumping two black checkers in one motion. for instance this would be considered one double jump.
    ________
    __R_____
    ___B____
    ________
    _____B__
    ________...
  8. My loop compiles and seems correct, but gives wrong output.

    I have everything right, except for my doublejump method. my loops seems right, my goal is to have the second output print how many possible time a red checker could "doublejump" a black checker. It...
  9. My loops are working, but not giving right output.

    Hey guys, I am working on this checkerboard assignment. I have everything working correctly that I need, but for extra credit i need to print out how many double jumps red checkers can make given a...
  10. My loop compiles and seems correct, but gives wrong output.

    Hey, guys I have a checkerboard logic assignment here. my goal was to print out how many possible jumps red checkers can jump black checkers given random checker arrangements given by the infile. I...
  11. Help making a method inloving a 2d array and file IO

    This is pretty broad, but I'm just looking for a starting point. I have initialized and created an array called checkerboard. I have read in a txt file that has 64 characters that resembles a...
  12. Finding and printing maximum value in 2D array..right section? :\

    Hey, guys I am fairly new to java so help would more than appreciated. I have initialized and filled a 2D array and also two 1D arrays. I have them running for the time being as I can print them to...
  13. Need help finding and printing min and max in a 2D array

    Hey, guys I am fairly new to java so help would more than appreciated. I have initialized and filled a 2D array and also two 1D arrays. I have them running for the time being as I can print them to...
Results 1 to 13 of 13