Search:

Type: Posts; User: JoshKesner

Search: Search took 0.09 seconds.

  1. Thread: Java Logic

    by JoshKesner
    Replies
    6
    Views
    1,306

    Re: Java Logic

    ive gotten this far


    public boolean makeBricks(int small, int big, int goal) {
    if ((big & small)> 0){
    if (goal%(big*5)<=small){
    return true;
    }else{
    return false;
    }
  2. Replies
    4
    Views
    1,629

    Using i-1 in programs

    Here is the question: Given an array of ints, return the number of times that two 6's are next to each other in the array. Also count instances where the second "6" is actually a 7.
    Here is the...
  3. Thread: Java Logic

    by JoshKesner
    Replies
    6
    Views
    1,306

    Re: Java Logic

    Thanks i was planning on using words
  4. Thread: Java Logic

    by JoshKesner
    Replies
    6
    Views
    1,306

    Java Logic

    We want to make a row of bricks that is goal inches long. We have a number of small bricks (1 inch each) and big bricks (5 inches each). Return true if it is possible to make the goal by choosing...
  5. My if statement seems to be getting skipped over

    public class SimpsonsParadox{


    public static boolean isSimpsonExample(int p1y1S, int p1y1T, int p2y1S, int p2y1T, int p1y2S, int p1y2T, int p2y2S, int p2y2T){


    if (((p1y1S +...
  6. It seems i have an error with my array but i'm not sure why any comments appreciated.

    Here is my code in complete


    public class BenfordsLaw{

    public static void main(String[] args){


    System.out.print("Generating Benford Sequence with initial amount =" + 100);...
  7. It seems i have an error with my array but i'm not sure why any comments appreciated.

    ok here is my code in complete:

    public class BenfordsLaw{

    public static void main(String[] args){


    System.out.print("Generating Benford Sequence with initial amount =" +...
Results 1 to 7 of 7