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
What is the resourcebundle class?
What is a singleton in java?
How do I run a java project?
What do you understand by a variable?
How can one prove that the array is not null but empty?
What is the java virtual machine (jvm)?
Java prints out a ton of digits when I system.out.println() a double. How can I format it so it displays only 3 digits after the decimal place?
What is meant by java se?
What is transaction management in java?
How do I download and install eclipse on windows 10?
What is the use of flatmap in java 8?
What is lambda expressions action func and predicate?
In java thread programming, which method is a must implementation for all threads?
What is mime in java?
What is a bean class?