Answer Posted / ritesh prabhu
<%@ page language="java" %>
<html>
<head>
<TITLE>Swap Numbers </TITLE>
</head>
<body bgcolor="#9999FF" >
<FONT SIZE=4 COLOR=white><U>Program to Swap 2
Numbers</U></FONT><BR>
<%
int i=1;
int j=2;
out.print("<FONT SIZE=3 COLOR=white>");
out.println("Before swapping i="+i+" j="+j);
out.println("<br>");
int temp=i;
i=j;
j=temp;
out.println("After swapping i = " + i + " j = " + j);
out.print("</Font>");
%>
</body>
</html>
| Is This Answer Correct ? | 33 Yes | 10 No |
Post New Answer View All Answers
What is mq in java?
How does java handle integer overflows and underflows?
What about products that claim to detect malicious applets? : java security
What is an interceptor in java?
How to reverse the singly linked list(In Node data members are(int data,int pointerTONext))
Why is class forname used in java?
What do I need to install netbeans?
What is the difference between swing and awt components?
What is lambda expressions action func and predicate?
What are jdk tools?
What is the difference between lambda expression and anonymous methods?
When do we go for java 8 stream api? Why do we need to use java 8 stream api in our projects?
What is java aop?
What is a static method?
What is the java api?