So I am new to Java and just copy and paste this course in Netbeans after making a new project. This should run but is not running because no main class is found.
package java.tutorial;
/**
*
* @author Admin
*/
public class JavaTutorial {
public static int[] rotateArray(int[] arr, int k)
{
// TODO code application logic here
for(int i=0;i<k%arr.length;i++)
{
int temp=arr[arr.length-1];
for(int j=arr.length-1;j>0;j--){
arr[j]= arr[j-1];
}
arr[0]= temp;
}
return arr;
}
}