Message from @Paragram Slide - AZ
Discord ID: 495339510738190346
hmmm
any ideas on how to fix that?
after init()
how many nodes in list3
println after init()
4
what is size
should be 4
I see
list3.add("C") will throw
because last node was null
and when you get it... and attempt to set next
the data was null, not the node itself I think
ahh ok
it must be the size then
get(this.size - 1) is returning null
```
ListNode last = get(this.size - 1);
if (last != null) {
last.next = newNode;
++this.size;
return true;
}
return false;
```
thanks
this would only happen adding first node to list I would think
what is this class?
or Java class?
Data Structures
I actually have a Java developer certificate but it was a long time ago so I have to relearn everything
Got it same time as I graduated high school
when I took that class we used C
1999 😉
Java was its own class back then - the OOP class
I had to take a 3 part Java series to get into this class
It was part of my certificate
nice
it's a good line of work
I need help factoring a math problem @here
-x^2 + 5x + 14
(-x - 2)(x - 7)
I have meeting in 3 mins
but that is close
Have you been taught any particular methods for factoring?
Not really all I've learned is the "what adds to give us the middle term and multiplies to give us the third term