How to create an object through a String? [duplicate]

0

Suppose I have the following object:

public class ItemDePedido {

    private int qtde;
    private double subtotal;
    private Produto produto;
}

In memory this (already created) object is interpreted as:

  

model.ItemDePedido@40c8f929

My question is: Is there any way to convert a String to this value in an Object?

    
asked by anonymous 05.09.2018 / 02:17

0 answers