Search:

Type: Posts; User: trueacumen

Search: Search took 0.29 seconds.

  1. Replies
    7
    Views
    10,038

    Re: User Input Loop

    Agreed, I would suggest the same for all cases like


    In such case u don't end up doing

    -1 = i, but i = -1 would have messed up things for you

    Acumen,
    Lucid forums
  2. [SOLVED] Re: find the position of the field separator in the String---need help ASAP

    that is what you want right?

    Acumen,
    Lucid forums
  3. [SOLVED] Re: find the position of the field separator in the String---need help ASAP

    say

    String str = "java|21|new1|kkkk|eee|rrrr||dddd|dddd|ooooo|2073|| ||||7747474|48888|required||||444444|";
    int index = str.indexOf("|");

    this gives you the index of pipe in the string. But...
  4. Replies
    7
    Views
    10,038

    Re: User Input Loop

    BTW,

    do in.trim().equals("-1") instead of in == "-1"

    also print and see what it is printing?

    Please note that you are doing redundant check in your while just for entry check.

    probably,...
  5. Replies
    3
    Views
    1,766

    Vim always rocks

    I love vim editor and I do a ctrl+p to auto complete my thoughts in my dream :D Being a little bit geeky, but for some reason, I feel eclipse and all are like spoon feeding and Vim is much nicer. No...
  6. Replies
    3
    Views
    1,118

    Re: Java Developer Snr/Jnr

    Can people do this projects remotely? if Yes, I know of people who can do this and are awesome at Java.

    Acumen,
    Lucid forums
  7. Re: Java Tutoring

    I am an american programmer as well. We can talk if you want. Forget about money for now, let me know how I can help you. I am from San Fransisco. Send me private mesg if you want.
  8. Replies
    5
    Views
    1,369

    Re: DateFormat is not thread safe

    I think that makes sense. I really appreciate the effort you are putting in maintaining these forums.
  9. Replies
    5
    Views
    796

    [SOLVED] Re: help with console input strnig....

    Just as a side note, please don't use new for a String, you might end up messing up.
    just use


    There would be disastrous results if u start using new for String, especially when you use == for...
  10. Replies
    5
    Views
    1,369

    Re: DateFormat is not thread safe

    I thought this was a tip, just curious why is this moved to 'New to Java'.

    Acumen,
    Lucid forums
  11. Replies
    14
    Views
    1,307

    Re: HELP "code needed"

    Never, never use Thread.Sleep() you will end up totally wrong. It waits more than given time and it can wait lot longer when your processor cycles are sucked by some other process. Look at this as...
  12. Replies
    5
    Views
    1,369

    Re: DateFormat is not thread safe

    Yeah, I agree with that.

    Acumen,
    Lucid forums
  13. Thread: vector

    by trueacumen
    Replies
    8
    Views
    915

    Re: vector

    Totally correct, please don't get me wrong :) Just explaining reason why I replied that way. Feedback of any kind is always welcome, that is the way we grow as people :)
  14. Replies
    5
    Views
    1,696

    Re: Java memory management

    Thanks Json, appreciate your prompt replies :)

    Acumen,
    Lucid forums
  15. Replies
    5
    Views
    1,369

    DateFormat is not thread safe

    Sorry if this is already posted. But this is one important thing to note:
    DateFormat is not thread safe. Using it in two parallel threads cause corruption of data or runtime exception. Use jodatime...
  16. Replies
    5
    Views
    1,696

    Re: Java memory management

    Thanks for replies guy. So I don't have any specific problem, it was just out of interest I wanted to learn about it.

    Acumen
    Lucid forums
  17. Thread: vector

    by trueacumen
    Replies
    8
    Views
    915

    Re: vector

    Hi Json,

    Appreciate you pointing that. I totally understand that I am doing in O(n^2) and we can do using hashing in O(n) space and O(n) time OR O(nlogn) time and constant space by sorting. But...
  18. Thread: vector

    by trueacumen
    Replies
    8
    Views
    915

    Re: vector

    Yeah pretty simple, still



    Acumen
    Lucid forums
  19. [SOLVED] Re: My Division Problem

    Yeah I agree that mod should not be used, because that is what assignment was all about.

    Acumen
    Lucid forums
  20. Replies
    2
    Views
    3,689

    Re: All possible combinations of a 1D array

    Combination Generator
    See, I am not big fan of copying especially programming. You copy everything, fail in everything, but be loyal with programming and you will rock. The above should be some...
  21. Replies
    5
    Views
    1,696

    Java memory management

    I kind of not big fan of Java because it manages its memory itself. Either ways I am looking for some pointers on internals of Java memory management and stuff.

    Acumen
    Lucid forums
Results 1 to 21 of 21