بسم الله الرحمن الرحيم
انا سويت كلاس خاصة في وظيفتها تضرب رقمين يدخلهم المستخدم
هاذي الكلاس لمن عملت لها تشغيل طلع لي ملف الكلاس وطلعت لي ملاحضة تحت
كود الكلاس
public class testt
{
public int area ( int x ,int y )
{
int l = x ;
int w = y ;
int z ;
z = l * w ;
return z ;
}
}وهاذي الملاحضة
--------------------Configuration: <Default>-------------------- Error: Main method not found in class testt, please define the main method as: public static void main(String[] args) Process completed.
وهذا كلاس المين اللي سويت له له اوبجت حتى استدعي الدالة الاولى
public class testt2
{
public static void main ( Strin [] args )
{
int c ;
testt n = new testt (System.in) ;
System.out.print ( " number1 " );
n.l = n.nextInt();
System.out.print ( " number2 ");
n.w = n.nextInt () ;
System.out.print ( " resault is " );
c = n.area() ;
System.out.printf ( "%d " ,c );
}
}يطلع لي هذا الخطا
--------------------Configuration: <Default>-------------------- Error: Could not find or load main class testt2 Process completed.
وهاذي الملاحضات في bulid output
--------------------Configuration: <Default>-------------------- C:\Users\tech\Documents\testt2.java:3: error: cannot find symbol public static void main ( Strin [] args ) ^ symbol: class Strin location: class testt2 C:\Users\tech\Documents\testt2.java:6: error: cannot find symbol testt n = new testt (System.in) ; ^ symbol: class testt location: class testt2 C:\Users\tech\Documents\testt2.java:6: error: cannot find symbol testt n = new testt (System.in) ; ^ symbol: class testt location: class testt2 3 errors Process completed.
ارجو افادتني وجزاكم الله خير




