so I'm having a lot of trouble understanding how this works...
public class Arbitros_modelo {
public Arbitros_modelo(String nombre, String nacionalidad, String posicion) {
// where my idea is to create objects with Constructor(String nombre)
// eg Arbitros_modelo(esteban, colombiano, lateral)
Object[] nombre = {nacionalidad, posicion};
}
but this gave me error,this is the idea, but it does not work probbly not understanding the concept so can someone explain to me o give me an article where i can learn this ?... so did some researching and found this:
public class Arbitros_modelo {
public Arbitros_modelo(String nombre, String nacionalidad, String posicion) {
Object[] Arbitros_modelo.class.getConstructor(Arbitro_modelo.class).newInstance(nombre) = {nacionalidad, posicion}
}
I know this is VERY wrong but just can't understand how to implement this correctly, please help. thanks !