JAVA - How to reference a static attribute in a static method that has the same signature as the parameter? [duplicate]

0

I created this small example class to show my doubts. How can I reference an attribute in which the signature is the same as the parameter passed in the method?

 package Teste;

    public class Pessoa {
        static String nome;
        public String local;
        static String getnome(String nome){
            return this.nome;
        }
    }

I'm trying to use this but it does not work.

    
asked by anonymous 16.09.2018 / 03:16

0 answers