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
Can a dead thread be started again?
Which class is the superclass of every class?
What about javascript? : java security
Which version of my browser should I use? : java security
What is javabeans api?
What about 'hostile applets'? : java security
What is the difference between lambda expression and anonymous methods?
What is difference between loosely coupled and tightly coupled in java?
What is a static method?
What is java ioc?
What is the purpose of jdk?
What is type inference? Is type inference available in older versions like java 7 and before 7 or it is available only in java se 8?
How do I run a project in netbeans?
What is the resourcebundle class?
What is transactional in java?