I'm starting to study java and after watching the creation of some objects I decided to try to create my own.
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - incompatible types: deodorant.Desclasse can not be converted to deodorant.Deodorant at deodorant.Deodorant.main (Deodorant.java:4) "
There is no other line with an error, and my object looks very similar to the example. Can someone help me?
package desodorante;
public class Desodorante {
public static void main(String[] args) {
Desodorante c1 = new Desoclasse(); //essa é a linha com erro
package desodorante; //aqui a classe
public class Desoclasse {
String cor;
String perfume;
int carga;
int peso;
boolean levantado;