8 original elements. removed one, and then added one. so 8. Put doesn't the vector just create more space automatically?
Type: Posts; User: new2.java
8 original elements. removed one, and then added one. so 8. Put doesn't the vector just create more space automatically?
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.
...
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...
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...
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...
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...
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__
________...
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...
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...
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...
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...
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...
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...