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 class path in java?
What is java ioc?
What is jndi datasource in java?
What is java net url?
What happens if javac is not recognized?
What is stateful in java?
Why do we need framework in java?
What is jpa project?
What is jpa entitymanager?
When do we go for java 8 stream api? Why do we need to use java 8 stream api in our projects?
What is javabeans api?
What is transient in java?
Which is more secure: java or activex? : java security
Why struts framework is used in java?
What is lambda expression in mvc?