Answer Posted / vishal
<%@ page language="java" %>
<html>
<head>
<TITLE>Swap Numbers </TITLE>
</head>
<body bgcolor="red" >
<FONT SIZE=4 COLOR=white><U>Program to Swap 2
Numbers</U></FONT><BR>
<%
int a=1;
int b=3;
out.print("<FONT SIZE=3 COLOR=white>");
out.println("the number is swapping "+a+"+b);
out.println("<br>");
int b=a+b;
int b=a-b;
int a=a-b;
out.println("the swapped number is a = " + a + " b = " + b);
out.print("</Font>");
%>
</body>
</html>
| Is This Answer Correct ? | 3 Yes | 6 No |
Post New Answer View All Answers
How does jpa repository work?
What is jar file in java?
Explain daemon thread.
Which framework is best for rest api java?
What is exe file in java?
Is jprofiler open source?
How do I open java console?
Which is faster c++ or java?
How do I know if I have jre or jdk?
What is meant by pass by reference and pass by value in java?
Are there tuples in java?
What is the resourcebundle class?
Do I really have to type in the programs in the book to try them out?
How do I open the java control panel?
Please can anybody explain what exactly "the project architecture" means???