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 adoptopenjdk?
What is gwt in java?
What is entitymanager in java?
What is jdk for netbeans ide?
What is proxy object in java?
What is java persistence api used for?
What does persist mean in java?
What about products that claim to block java applets at a firewall? : java security
What's the difference between local, global and universal groups? : java security
What is the use of servlet in java?
Is openjdk the same as jdk?
What is dto in java?
How do I run a java program from the command line?
How can I swap two variables without using a third variable?
What is loose coupling in java?