Instead of
People Object1 = new People();
Object1.name(lisa);
you should write:
People people = new People();
people.name("lisa");
Note first the quotation marks around "lisa". Without these quotation marks Java will interprete it as variable name and not as String (as required by signature of name()-method in class People. And it is a common convention in Java to write variable names like "Object1" in small letters - for code readability. Here as information the guidelines from Oracle.