Passign arguments

Hello,

I'm trying to learn how to create two classes, passing one argument to the other. But I'm getting an error, "Cannot make a static reference to the non-static field hl." What am I doing wrong?
hello.java

1: both classes have main methods which begs the question, which one do you want to have with a main method, and which one should be more of an OOPs class. My guess, hello should have a main and nothing but a main method, and DisplayFunc should not. In fact your may be partly stemming from DisplayFunc having a static method, which it shouldn't have. Quite possibly you meant to have a constructor in the place where you have DisplayFunc's main method.

2: You appear to be referring to the hello class from within DisplayFunc and the DisplayFunc class from within hello. This can lead to big problems, and I don't think that you really want to do this.

3: You have a hello variable hl that, and you appear to be trying to access a field of the class, s, that simply doesn't exist.

4: the code just doesn't make sense. What are you trying to do? This is probably the biggest problem.

My suggestions:

1) First of all get rid of all this code, it's not worth correcting, and start over.
2) Start out with a plan written out in English, not in Java.
3) Then code from that plan.
4) Then if you are still having problems, come back with your code and your plan/explanation of what you're trying to do.