با سلام خدمت دوستان عزیز.
من تازه کار هستم .
با خطای زیر روبرو شدم.
non-static variable this caot be referenced from a static contextاینم از کدی که در حال نوشتن اون بودم. به نظرتون مشکل کار من از کجاست؟
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
در این خط خطا رخ میدهد Box myBox = new Box(5,2);
System.out.print(myBox.masahat());
}
}
برچسب:
نویسنده: محمد رضا جوادیان