Search:

Type: Posts; User: Leonardo1143

Search: Search took 0.11 seconds.

  1. Replies
    4
    Views
    1,266

    Re: boolean problem.

    Sorry I was doing this on a website. It messed up when I moved it here. But I fixed the problem.
  2. Replies
    4
    Views
    1,266

    boolean problem.

    public boolean sum28(int[] nums) {
    int [] sum28 = {10,2,2,2,2,50};

    int sum;

    for (int i=0; i<sum28.length; i++) //This will cycle through the elements
    {
    if (sum28[i] == 2) //If...
Results 1 to 2 of 2