Write code for the following Java methods. Test your code. Take screenshots.
1). Write a Java method which receives an integer number, converts and return its corresponding ASCII character ('a' to 'z' or 'A' to 'Z'). If the integer is out of range, the method should display an error message.;
2). Write a Java method which receives three integer numbers, and returns the largest integer;
3). Write a Java method which receives a positive integer number and display all prime numbers from 1 to the integer number it receives. You should research on the internet regarding what a prime number is. If the integer is negative, the method should display an error message.
4). Write a Java method which receives a positive integer number, finds out if the integer number corresponds to a leap year. You should research on the Internet regarding what a leap year is. If the integer is negative, the method should display an error message;