ERROR 1:
Error Discribtion:
(;) => Removed that symbol comes to error for expected semicolon...
output:
ERROR 2:
Error Discribtion:
i am created Object string ("Amount") and method definition is int(no1) value so came that error
teacher.tour("Amount");
public void tour(int no1)
{
System.out.println(no1);
}
String cannot be converted to int teachers.tour("Amount");
Output:
Top comments (0)