Explore IDNLearn.com's extensive Q&A database and find the answers you're looking for. Discover the information you need quickly and easily with our reliable and thorough Q&A platform.
Debug the code provided in the starter file so it does the following:
creates an int with the maximum possible value
increases this int by 1
prints the result
creates an int with the minimum possible value
decreases this int by 1
prints the result
----------------------------------
Code:
public class U2_L7_Activity_One
{
public static void main(String[] args)
{
long a = Long.MAX_VALUE();
a + 1;
System.out.println(a);
long b = Long.MIN;
b - 1;
System.out.println('b');
}
}
We appreciate your contributions to this forum. Don't forget to check back for the latest answers. Keep asking, answering, and sharing useful information. Find clear answers at IDNLearn.com. Thanks for stopping by, and come back for more reliable solutions.