« first day (12 days earlier)    last day (14 days later) » 

3:42 AM
@MadProgrammer Can you come here please?
 
Stopped
 
how are you?
 
Awake...
 
haha you should change your id name to the thehootprogrammer lol
my question is inseration sort I bet it brings a lot of good memories lol ;)
my code is
for (int i = 1; i < ll.size(); i++) {
for (int j = i; j > 0; j--) {
if (ll.get(j) < ll.get(j - 1)) {
Collections.swap(ll, ll.get(j - 1), ll.get(j));
}
}
i do not get why it does not work
I follow this
for i ← 1 to length(A) - 1
j ← i
while j > 0 and A[j-1] > A[j]
swap A[j] and A[j-1]
j ← j - 1
 
3:57 AM
I think you need to break after Collections.swap(ll, ll.get(j - 1), ll.get(j));
 
what is gonna happen to if stetment ?
 
Wait, Collections.swap(ll, ll.get(j - 1), ll.get(j)); should be Collections.swap(ll, j - 1, j);
 
haha you were right
thank you thehootprogrammer
 
I think "zombi programmer" might be more accurtate :P
 
no man thehootprogrammer
just know the blessing helping others will protect your little baby forever
:)
can yoyu plz check my answer her plz?
0
A: Begginner Java: nextLine Dilema

Kick ButtowskiSince sFirstName and lFirstName , each consist of a word you should use next() Finds and returns the next complete token from this scanner. Instead of nextLine() Advances this scanner past the current line and returns the input that was skipped.

 
4:30 AM
thank you for you comment. : )
thank you so much for your help and ttyl sir : - )
 

« first day (12 days earlier)    last day (14 days later) »