Search:

Type: Posts; User: paco

Page 1 of 2 1 2

Search: Search took 0.22 seconds.

  1. Replies
    6
    Views
    185

    Re: GUI Grid/Border Layout Issue

    yes thx, i tinkered with it and figured it out. Is there by chance a command for enabling labels such as SOUTH.CENTER or SOUTH EAST, or do I have to put the exact location in x,y co-ordinates? I have...
  2. Replies
    6
    Views
    185

    Re: GUI Grid/Border Layout Issue

    ok thanks for the reply, I did that but now I get one big button in the top left of the window
  3. Replies
    6
    Views
    185

    Re: GUI Grid/Border Layout Issue

    Yes, like I said when I do that I get the label exactly where I want (using the second piece of quoted code) but then my entire window becomes one big giant button.
  4. Replies
    6
    Views
    185

    GUI Grid/Border Layout Issue

    Hello, I am trying to build a minesweeper GUI and I have ran into a small problem; I am trying to add a label at the bottom for the score counter and this is what I have excluding the score label....
  5. Replies
    6
    Views
    304

    Re: Trying to Find Recursion and Loop Limit

    I dont understand how I would use the method you gave me to keep it continuously counting until stackoverflow occurs. Would I call on it as soon as I call on my 2 other methods?

    UPDATE: Also if...
  6. Replies
    6
    Views
    304

    Re: Trying to Find Recursion and Loop Limit

    I still do not understand what you are doing, how would I call on that method and would I use it for both or just the recursive method? Also, how did you get 10816? If I input the fibonacci number of...
  7. Replies
    6
    Views
    304

    Re: Trying to Find Recursion and Loop Limit

    Yes you are right, I am looking for the largest number in the Fibonacci sequence that will result in stackOverFlow. If I input a very large number though I don't actually get stack-overflow, eclipse...
  8. Replies
    6
    Views
    304

    Trying to Find Recursion and Loop Limit

    hello, I am doing some code on calculating the fibonacci sequence in 2 different methods, one is through recursion and the other is through a for loop. And so, I am trying to figure out the max value...
  9. Replies
    13
    Views
    421

    Re: BMI Calculator, (boolean problem)

    thanks for the comment jdv. I realize what you are saying and I am going to redo some of the code right now and perhaps I will use 2 methods for the metric and imperial calculation, will post soon,...
  10. Replies
    13
    Views
    421

    Re: BMI Calculator, (boolean problem)

    its OK i did not use your code anyways as some parts of it I did understand
  11. Replies
    13
    Views
    421

    Re: BMI Calculator, (boolean problem)

    I mean its not an error but just the exclamation mark comes up before I even run my code on the side
  12. Replies
    13
    Views
    421

    Re: BMI Calculator, (boolean problem)

    Hey, Im not sure what you mean by that given code, aBooleanVar. Also, when I change "==" to '=" I get an error "Cannot convert from int to boolean". Shouldn't it function using the assignment...
  13. Replies
    13
    Views
    421

    BMI Calculator, (boolean problem)

    Hello, I am making a BMI calculator that is pretty much complete but I am currently stuck on an issue with a boolean, here is my code :



    import java.util.Scanner;
    public class BMI
    {
    public...
  14. Re: Keeping track of found objects in array and smallest value

    Im aware of that but am I just trying to make it fool proof, as in what if there happens to be 7 or n + 1 matches then it has to be an array of 7 elements, and since my array is one of the first...
  15. Re: Keeping track of found objects in array and smallest value

    I have set my original 2 arrays to 10, so now if I make a third array to copy my 2nd array to, then there will be some slots that will be filled with 0's and those will get copied over. I guess I...
  16. Re: Keeping track of found objects in array and smallest value

    I dont know what array list is, havent learned that yet, also if I were to move it to another array, say ar1 = ar2 wouldn't they just be the same size and the same outcome would happen?
  17. Re: Keeping track of found objects in array and smallest value

    ok I will try now, thanks, thought there might have been another way/method
  18. Re: Keeping track of found objects in array and smallest value

    Yes I am trying to change the size of the ray and make it equal to my count which would have been the amount of times where my title and ISBN are the same. That way only the ones that are found will...
  19. Re: Keeping track of found objects in array and smallest value

    By looking at my code is that what you recommend I should do?
  20. Re: Keeping track of found objects in array and smallest value

    yea got that part :D took some time though, i am very slow.

    update: i still am stuck at this, my problem is valueFound[i] = k; . I dont know how to get around this, I can't declare my second...
  21. Re: Keeping track of found objects in array and smallest value

    reversed those 2 and my first part is working again.



    valueFound[i] = k;


    but now output:
  22. Re: Keeping track of found objects in array and smallest value

    I just ran it and got:

    Please enter a book title:
    ho
    Please enter a ISBN number:
    1001
    The book title is ho, the ISBN number is 1001 and the price is 70.0$.

    Index Information At Index...
  23. Re: Keeping track of found objects in array and smallest value

    "set smallest value variable to the first element in the list
    begin loop starting at the second element in the list"

    whats wrong with the way I have it above? If I am checking all the values of...
  24. Re: Keeping track of found objects in array and smallest value

    the first for loop goes through my list checking for books with the same price and ISBN # and then stores where they are located in that array, into a separate array (i want to change the price...
  25. Re: Keeping track of found objects in array and smallest value

    thanks for stating the obvious, I was hoping for an example, but I guess you think I am being lazy and want you to spit out the answer...WRONG! I am deeply confused and need help, heres my attempt,...
Results 1 to 25 of 34
Page 1 of 2 1 2