Mam enaku error varudhu Java.lang.NoSuchMethodError nnu varudhu mam enna pandradhu nu sollu ga plzz
@LogicFirstTamil2 жыл бұрын
paste ur code
@activebgm68642 жыл бұрын
@@LogicFirstTamil package OOPS; class Box{ int length; int breath; int height; Box(int l,int b,int h){ length=l; breath=b; height=h; } boolean isEqual(Box b){//call by reference of object created if(length==b.length && breath==b.breath && height==b.height) return true; return false; } Box doublebox(){//Returning Objects Box temp = new Box(2*length,2*breath,2*height); return temp; /*temp.length=2*this.length; temp.breath=2*breath; temp.height=2*height;*/ } } public class PassingRefDemo { static void increment(int a) {//call by value a++;//method created in with in main method does not work } public static void main(String[] args) { int a=10; increment(a); System.out.println(a); Box b1=new Box(5,12,13); System.out.println(b1.length); Box b2=new Box(12,12,13); b1.isEqual(b2); System.out.println(b1.isEqual(b2)); //Box b3=b1.doubleBox();//returning object Example Box b3=b1.doublebox(); System.out.println(b3.length);//returning object Example } }
@LogicFirstTamil2 жыл бұрын
@@activebgm6864 which line u get err. u need to give complete details
@activebgm68642 жыл бұрын
@@LogicFirstTamilmam andha static variable and static method andha thuniyaal adhhlayaum idha error dha varudhu
@mohamedthoufiqm81082 жыл бұрын
❤️
@arivuchelvang75703 жыл бұрын
Mam idhula passingRefDemo dhana class idhula epdi box class ah copy panninga...enakku error varudhae...class kulla class podalama?