dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: blaze12364

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    728

    Re: Problem with arrays

    when you say call the method from another loop do you mean something like this:






    for (i=0; i<collected.length; i++) {

    if(isAllowedNumber(collected[i])
  2. Replies
    5
    Views
    728

    Re: Problem with arrays

    How do i say:

    If an integer in the collected array is not equal to any of the values in the allowed numbers array then return error message???
  3. Replies
    5
    Views
    728

    Problem with arrays

    int i = 0;
    int j =0;

    I have an allowed set of numbers:

    int[]allowed = {1,1,2,2,3,3,4,4};

    I allow the user to enter 4 numbers. Of which i collect and store in an integer array collected ...
  4. Replies
    2
    Views
    1,803

    Validating data entered into a JTextField

    I have three JTextFields.
    And i have a set of integers {1,1,2,2,3,3}

    How do you ensure that only these numbers can be entered into the JTextFields ?
    Also when an integer from the above set is...
  5. Replies
    11
    Views
    1,463

    Re: Duplicates

    Thank-you everyone for your advice.

    This stuff was really giving me a headache, i tried so many different things.

    Using treeSet worked so perfectly.

    Thank-you all once again.
  6. Replies
    11
    Views
    1,463

    Re: Duplicates

    I would not be able to post the code in this thread.
    Do you use msn by any chance at all, because i could really do with your help.
    This stuff is driving me nuts.

    thanks deliverance
  7. Replies
    11
    Views
    1,463

    Re: Duplicates

    I've attempted HashMaps, but im confused on how to use it properly. The code below doesnt remove any duplicates, but im pretty sure im using HashMaps incorrectly.





    if(sorted[j] = target) {
  8. Replies
    11
    Views
    1,463

    Re: Duplicates

    Ive stored now all the expressions in an ArrayList a, but now i'm not sure how i would compare each one to remove the duplicates.





    if(sorted[j] == target) {
    ...
  9. Replies
    11
    Views
    1,463

    [RESOLVED] Duplicates

    Is there a way in java, to store strings that you would have otherwise just printed, in order to compare these strings before you print them so that no duplicates strings appear when printed?

    Is...
  10. Thread: Java Coding

    by blaze12364
    Replies
    1
    Views
    624

    Re: Java Coding

    lol

    No one is going to help you when you post something like that.

    Quick Tip: Show some effort
  11. Re: Removing duplicates in a string array

    kool
  12. [RESOLVED] Removing duplicates in a string array

    ok
  13. Re: Running a JButton automatically

    I don' t understand how you would implement doClick() with a button that i have created, i know you can use it easily when its a button being pressed on a keyboard using keyevent. Could you explain ?...
  14. [RESOLVED] Running a JButton automatically

    Hi i want to be able to automatically activate a JButton and run the commands under that button when new button 'All Targets' is selected.

    I have the following code, can anyone help?



    ...
  15. Thread: Counting

    by blaze12364
    Replies
    1
    Views
    651

    Counting

    Below is a piece of my program, i have printed out all the expressions. As the number of expressions it prints is incredibly large (over 5,000) and takes time i want to be able to count the number of...
  16. [RESOLVED] java

    ok
  17. Replies
    4
    Views
    729

    Re: Ideas on approaching problem please

    In the pseudo code I tried to use as much java knowledge as I had. I'm not aware of any features in java that could simplify what i am doing, neither am i confident in getting the while loop written...
  18. Replies
    4
    Views
    729

    Ideas on approaching problem please

    1)I want to create a program in java that allows the user to select six numbers from a fixed set of numbers (1-10,25,50,75,100)
    2)Then i want to generate a number from 100-999 which will be the...
  19. Replies
    5
    Views
    671

    Re: nested for loops - help please!

    thanks for your post petes1234

    The nested loop is the starting point that i was provided with. This is simply the starting point of an algorithm translated into java. I need to develop the rest of...
  20. Replies
    5
    Views
    671

    Re: nested for loops - help please!

    To select 6 numbers from the possible numbers (poss_num)
    and using arithmetic expressions and parenthesis to provide a valid solution that meets the target value (a 3 digit value). Similar to the...
  21. Replies
    5
    Views
    671

    nested for loops - help please!

    i'll try
  22. Replies
    7
    Views
    1,193

    Re: HELP!! Strings

    It wasn't too hard after all. thanks
  23. Replies
    7
    Views
    1,193

    Re: HELP!! Strings

    thanks for your posts.

    keang i seriously wouldnt know where to begin, my skills in java are only of an intermediate level, i still have a lot to learn. But i am looking into your idea.

    if...
  24. Replies
    7
    Views
    1,193

    Re: HELP!! Strings

    I would be able to read through the string character by character, but getting the result in the format i require is what i am struggling with, especially with the more complex example.

    thanks...
  25. Replies
    7
    Views
    1,193

    HELP!! Strings

    Hi guys,

    Is there anyone out there who can help me figure out how to display strings of symbols in a shorter form using Java. For example i want to be able to take a string "dddddd" and for it to...
Results 1 to 25 of 27
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)