Message from @Jacob

Discord ID: 495326406683787289


2018-05-09 01:15:03 UTC  

okay nice that helps clear it up thank you!

2018-05-09 01:16:18 UTC  

Although, as a counter-argument, you could make the claim that it isn't *really* industrialization that is the main cause.

2018-05-09 01:16:53 UTC  

*cause of nationalism

2018-05-09 01:18:24 UTC  

true i was thinking that aswell

2018-05-09 01:18:53 UTC  

Interesting. What example are you going to use?

2018-05-09 01:19:28 UTC  

im not sure yet, kind of just gathering my thoughts and re-reading some parts right now

2018-05-09 01:20:01 UTC  

Ok! Good luck.

2018-05-09 01:20:40 UTC  

thank you!

2018-09-01 00:16:51 UTC  

Is anybody in here a Calculus wiz?

2018-09-01 03:42:33 UTC  

@GDoctor taught it for many years, I can probably help

2018-09-01 03:42:43 UTC  

What are you looking at?

2018-09-01 22:08:58 UTC  

@ThisIsChris I'm In calculus 1 right now and there are no prerequisites however, it assumes a high school background in pre-calculus. The problem is that high school was over 10 years ago for me and I didn't do well in it. I'm going to post a scan of my latest homework and would like to know how to solve the problems in layman's terms. The scientific calculator I have is a TI-84 Plus.

2018-09-01 22:11:02 UTC  

Here's my current homework. It's due September 5th.

https://cdn.discordapp.com/attachments/387060078433271808/485572319138414604/September_5th_homework.jpeg

2018-09-01 23:10:46 UTC  

@GDoctor here is 1a and 1b

https://cdn.discordapp.com/attachments/387060078433271808/485587353545736194/Screenshot_20180901-191014.png

2018-09-03 00:25:01 UTC  

@ThisIsChris Thank you very much! I'm signed up for tutoring at my school so hopefully I'll catch up and remember how to do this stuff in my head. Tests account for 85% of my final grade.

2018-09-28 20:08:07 UTC  

<@&435155896780324864> Can someone tell me why I'm getting a null pointer exception in Java?

2018-09-28 20:08:34 UTC  

?

2018-09-28 20:09:01 UTC  

how do you paste code?

2018-09-28 20:09:26 UTC  

```java
import java.lang.*;
```

2018-09-28 20:09:48 UTC  

\`\`\`java
code
\`\`\`

2018-09-28 20:10:18 UTC  

```java
public boolean contains(Object o) {
for (int i = 0; i < size; i++) {
if (o == null && get(i).data == null) {
return true;
}
else if (get(i).data.equals(o)) {
return true;
}
}
return false;
}
```

2018-09-28 20:10:38 UTC  

```java
public ListNode get(int index) throws IndexOutOfBoundsException{
ListNode cur = head;
for (int i = 0; i < index; i++) {
if (i == index) {
return get(i);
}
cur = cur.next;
}
return null;
}
```

2018-09-28 20:10:59 UTC  

pls no bully I haven't taken Java in two years and now I have to relearn everything

2018-09-28 20:11:21 UTC  

get(i).equals

2018-09-28 20:11:46 UTC  

make the first && an ||

2018-09-28 20:12:45 UTC  

but I'm checking to see if they're both null

2018-09-28 20:13:03 UTC  

but the elseif

2018-09-28 20:13:15 UTC  

o could be null

2018-09-28 20:13:17 UTC  

```java
// Returns true if this list contains the specified element o.
// More formally, returns true if and only if this list contains at least one element e
// such that (o==null ? e==null : o.equals(e)).
// Note: you have to handle the case where a list node stores null data element.
```

2018-09-28 20:14:06 UTC  

if o is not null you will move to the else if

2018-09-28 20:14:14 UTC  

and get(i).data could be null

2018-09-28 20:14:28 UTC  

do this

2018-09-28 20:15:48 UTC  

Object.equals(get(i).data, o)

2018-09-28 20:15:51 UTC  

in the else if

2018-09-28 20:16:03 UTC  

handles nulls

2018-09-28 20:17:26 UTC  

says that the method is not applicable for arguments

2018-09-28 20:17:28 UTC  

Objects.equals

2018-09-28 20:17:31 UTC  

ah

2018-09-28 20:17:33 UTC  

not Object

2018-09-28 20:18:36 UTC  

I still get a null pointer exception from the if statement

2018-09-28 20:19:16 UTC  

this is what is being tested btw