Skip to content

Commit

Permalink
Update systemexit.java
Browse files Browse the repository at this point in the history
  • Loading branch information
SayaliPatiil authored Dec 14, 2021
1 parent f171443 commit 81c85e2
Showing 1 changed file with 2 additions and 29 deletions.
31 changes: 2 additions & 29 deletions systemexit.java
Original file line number Diff line number Diff line change
@@ -1,36 +1,9 @@
import java.util.*;
import java.lang.*;
package javacodechecker;

class systemexit
{
public static void main(String[] args)
{


package javacodechecker;
public class RedirectWithoutExit {
public void bad(HttpServletRequest request, HttpServletResponse response) throws Throwable {
IO.writeLine("line before redirect");
IO.writeLine("line before redirect");
response.sendRedirect("/test");
IO.writeLine("line after redirect");
}

private static final int MAX_NEMBER_OF_REQUEST=5;
public int arr[] = {1, 2, 3, 4, 5, 6, 7, 8};

for (int i = 0; i < arr.length; i++)
{
if (arr[i] >=MAX_NEMBER_OF_REQUEST )
{
logger.info("exit...");


}
else
logger.info("arr["+i+"] = " +
arr[i]);
}
logger.info("End of Program");
}

}

0 comments on commit 81c85e2

Please sign in to comment.