Java error prompt….. cannot be resolved

Error message:
Type:… Always be resolved.
Reason analysis:
:
/* Any hint that… Always be resolved.
* 1. Variables are used without being declared or defined.
* 2. Some class, no import or definition
* 3. An object that is not defined or declared.
*
*
*/

Examples in specific projects:

import java.util.Scanner;
public class AppCAC
{
public static int Avg(int temp)
{
int avg1;
avg1=temp; // When written like this: avg1=temp; The error shown is: AvG1 cannot be Resolved // i.e. Avg1 cannot be resolved.
avg1=avg1+temp;

return avg1;
}

public static int Max(int temp)
{
int M=0;
if(temp> =M)
M=temp;
return M;

}

public static int Min(int temp)
{
int Min=0;
if(Min> =temp)
{
Min=temp;
}
return Min;
}

public static void main(String[] args)
{
int com;
int avg;
int max;
int min;
// here I want to define three methods
// how do I define methods?

/*Scanner scan=new Scanner(system.in); Multiple markers at this line
-scanner cannot be resolved to
a type*/

for(int I =1; i< 11. I++)
{
system.out.println (” please enter: “);
// com=scan.nextInt(); I can conclude by saying:

/* any scan cannot be resolved. Always be resolved.
* 1. Variables are used without being declared or defined.
* 2. Some class, no import or definition
* 3. An object that is not defined or declared.
*
*
*/
Avg(com);
Max(com);
Min(com);
}
/*for(i=1; i< 11. I++)
{
system.out.println (” please enter: “);
com=scan.nextInt();
Avg (com);
Max(com);
Min(com);
}
, this code shows: Multiple markers at this line
-i cannot be
-i cannot be
resolved
-i cannot be
resolved

this error, : error: I cannot be processed. Why can’t I be processed??The reason: I use it without defining I, and variables can only be used if they are defined.
*
*/
avg=Avg/10;
system.out.println (” now start output: \n”);
system.out.println (” mean: “,avg);
system.out.println (” Max: “,Max); // The method println(int) is not applicable for The arguments (String, int),
// learn how to use println method.

}

}

Read More: