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
Type: Posts; User: trueacumen
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
that is what you want right?
Acumen,
Lucid forums
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...
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,...
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...
Can people do this projects remotely? if Yes, I know of people who can do this and are awesome at Java.
Acumen,
Lucid forums
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.
I think that makes sense. I really appreciate the effort you are putting in maintaining these forums.
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...
I thought this was a tip, just curious why is this moved to 'New to Java'.
Acumen,
Lucid forums
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...
Yeah, I agree with that.
Acumen,
Lucid forums
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 :)
Thanks Json, appreciate your prompt replies :)
Acumen,
Lucid forums
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...
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
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...
Yeah pretty simple, still
Acumen
Lucid forums
Yeah I agree that mod should not be used, because that is what assignment was all about.
Acumen
Lucid forums
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...
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