Search:

Type: Posts; User: b_jones10634

Search: Search took 0.28 seconds.

  1. Replies
    4
    Views
    635

    Re: Help with regex pattern

    Daryl,

    Why does that matter?
  2. Replies
    1
    Views
    974

    Re: Excel Files

    Why recreate the wheel?

    There are already several Java libraries out that handle Excel read/write functions, one of which is developed by Apache.

    Look into Apache's POI, or JExcelApi.
  3. Replies
    4
    Views
    635

    Help with regex pattern

    Community,

    I need some help developing a regex pattern that will do the following remove all illegal characters from a file name.

    These characters include:

    #
    <
    >
    %
  4. Replies
    1
    Views
    4,218

    [SOLVED] Re: XML get/set node by attribute value

    I was able to solve this using XPath:

    1) evaluate an XPath statement that returns the node in question ("//location[@name='value']")
    2) iterate the returned NodeList object to access the nodes...
  5. Replies
    1
    Views
    4,218

    [SOLVED] XML get/set node by attribute value

    Hello community,

    I've seen several posts regarding XML processing with Java, however none that I've found address my current problem.

    I've developed an XMLFileHandler class that loads a given...
  6. Replies
    2
    Views
    1,005

    Re: Theory Inquiry

    I was able to solve this problem using an older methodology of providing a .jsp page with a progress bar.

    By creating a java class that implements both Runnable and Serializable, you can create a...
  7. Replies
    2
    Views
    1,005

    Theory Inquiry

    Community,

    If there are any gurus out there paying attention, maybe you can help me out?

    Lets say on a .jsp page, I have a button, which when clicked transfers the user to another .jsp page....
  8. Replies
    13
    Views
    3,151

    [SOLVED] Re: Help; algorithm to determine 'range'

    Hunter,

    When I implemented your solution, the results would be near perfect, expect the last number in the string would actually be the second last number in the list of integers.

    I'm not sure...
  9. Replies
    13
    Views
    3,151

    [SOLVED] Re: Help; algorithm to determine 'range'

    Hunter,

    Changing one line in your algoritm produces the correct result

    Change this line:


    rangeString += rangeStart + "-" + previousNum;

    to this:
  10. Replies
    13
    Views
    3,151

    [SOLVED] Re: Help; algorithm to determine 'range'

    HelloWorld,

    Thanks for your reply, but I'm not sure you understood the problem at hand.

    The task is not to find the start of the range... yes that is very easy to accomplish.
    The task is to...
  11. Replies
    13
    Views
    3,151

    [SOLVED] Re: Help; algorithm to determine 'range'

    Hey Hunter,

    Thanks for your input, your solution does seem slightly less convoluted. I wasn't particular happy with my solution based on all the string comparisons and substrings.

    I think I'll...
  12. Replies
    13
    Views
    3,151

    [SOLVED] Re: Help; algorithm to determine 'range'

    I think I've developed an algorithm that accounts for all necessary scenarios.
    Any comments are welcomed.

    int startOfCurrentRange = channelNums.get( 0 ).intValue();
    int lastNumber =...
  13. Replies
    13
    Views
    3,151

    [SOLVED] Re: Help; algorithm to determine 'range'

    Thanks for your reply, unfortunately the algorithm you supplied does not account for all scenarios (it assumes that it will always start with a range, but what if the set is [6, 8, 10, 14, 18]).
    ...
  14. Replies
    13
    Views
    3,151

    [SOLVED] Help; algorithm to determine 'range'

    Hello community,

    I'm trying to develop a function to determine the 'range' of some integer values. 'Range' is the best way I can describe it, but it is different than the mathematical 'range',...
Results 1 to 14 of 14