please I've been working on this for hours and I'm about to explode, I'm beulding a LinkedSeq<E> and I'm trying to create an addAll method, here's my class:
// File: LinkedSeq.java based on the...
Type: Posts; User: cutekill0
please I've been working on this for hours and I'm about to explode, I'm beulding a LinkedSeq<E> and I'm trying to create an addAll method, here's my class:
// File: LinkedSeq.java based on the...
sorry, I didn't realized I only posted the first half of the code, here's what I have so far:
public class DoubleArraySeq implements Cloneable
{
// Invariant of the DoubleArraySeq class:
//...
Hello guys, I'm trying to build this DoubleArraySeq program and the addAfter and addBefore methods are not working correctly and I can't figure out why please help
public class DoubleArraySeq...
Thank you very very much :)
ok so I fixed some things and I'm passing most of my tests except the union tests
public class Statistician implements Cloneable {
/****************************
* class invariant:
* -...
well the failure in union is at assertTrue("Union not empty", w.length( ) == 6);
I'm very sorry, the tests that are failing are union, allNegative, compareTwoSmall, compareTwoMedium, unionSmall, addExtremes, and cloneEquals, I hope you can help me
Hi everyone, I was doing this assignment and I though I had everything right until I had to run the Test program, here's my code:
public class Statistician implements Cloneable { ...
that's one place I'm having trouble with, I'm not sure where I need to use them
the ranges: birthLow, birthHigh, liveLow, and liveHigh 4 in total my mistake
For a birth to occur, the cell must be empty and the neighborhood density be in the birth range. The birth range can be...
ok but where should I initialize the other 5 variables?
that's one of my question, do I have to do the console.nextInt() in the same readInput method, or do I need to create a new one?
so now my program needs to read the parameters from standard input. The new inputs for this part are the values for the ranges, birthLow, birthHigh, liveLow, and liveHigh. I need to read the matrix...
Great idea, I'll try it out, thanks much :)
Its not really a problem, I was just trying to create an if loop trying to stop the program after just 2 inputs, but when I run the program and I write just 2 numbers, it just continues running...
I tried it and the program just waits for a third input, after a third input its when the program stops, I guess making it so it stops at 2 inputs would not matter
Hello again guys, I was cleaning up my code and doing tests and I wanted to ask if you recommend any way to stop the program if only 2 inputs are typed, like throwing an exception if the user only...
ok so I changed the printMatrix method to look like this
private static void printMatrix(boolean[][] matrix)
{
for(int r = 0; r < matrix.length; r++)
{
for(int c = 0; c <...
Wow thank you very much, also on my printMatrix method the output should be a '-' for false and a '#' for true, any ideas how I can do this?
Again thank you a lot
Hello guys, I'm new here, I was trying my homework for computer science which consists of making a basic Game of Life program with a 2D boolean array and a Random number with a seed, this is what I...