[Solved] Error in passing string arrgument to method in java [closed]


you have passed invalid parameters.you can fix by fixing your sending parameters like :

xiaomi.setData("Xiaomi",5.5f,3,32,2,8.0f);

or change your function signature to

String brand,float screensize,int ram,int memory,double processor,float androidversion

and also change variables to
private float screensize;

private float androidversion;
private int ram;
private int memory;
private double processor;
private String brand;

0

solved Error in passing string arrgument to method in java [closed]