Professional Documents
Culture Documents
Information Technology
Q.3. WAP in java of swapping of two numbers without taking a third variable.
Conditional Programming
Q.5. WAP in java to find out greatest out of 4 numbers. (By both methods using logical operators and by
nested if).
Q.6. WAP in java take three variables date, month, and years and print the date in following format:
(Ex- if d=16, m=6, and y=2012 then the out should be 16th/june/12)
Loop Programming
Q.13. WAP in java to swap the elements of array like first element with last element and last element
with first element.
String Program
i. Index of a string
Note: Take the screen shot of input and output and then after printing paste it in your practical file.
All the above program you have to do by input method and function also.