public class Calculator{
public static void main(String[] args){
int numOne = args[0];
int numTwo = args[1];
add(numOne, numTwo) {
result = numOne + numTwo;
System.out.println("{numOne} + {numTwo} = {result}");
}
subtract(numOne, numTwo) {
result = numOne - numTwo;
System.out.println("{numOne} - {numTwo} = {result}");
}
multiply(numOne, numTwo) {
result = numOne * numTwo;
System.out.println("{numOne} * {numTwo} = {result}");
}
divide(numOne, numTwo) {
result = numOne / numTwo;
System.out.println("{numOne} / {numTwo} = {result}");
}
}
}
Friday, March 6, 2015
Saturday, February 28, 2015
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {
font-size: 36px;
color: #FFFFFF;
}
.style2 {font-size: 9px}
-->
</style>
</head>
<body>
<table width="1143" height="640" border="0">
<tr>
<td width="114" height="88" bgcolor="#0066CC"> </td>
<td width="585" bgcolor="#0066CC"><div align="center" class="style1">facebook
<form id="form1" name="form1" method="post" action="">
<label></label>
</form>
</div></td>
<td width="182" bgcolor="#0066CC"><p>Email or Phone</p>
<p>
<input type="text" name="textfield" id="textfield" />
</p>
<form id="form2" name="form2" method="post" action="">
<label>
<input type="checkbox" name="checkbox" id="checkbox" />
</label>
Keep me logged in
</form> <p> </p></td>
<td width="234" bgcolor="#0066CC"><p>Password</p>
<form id="form3" name="form3" method="post" action="">
<label>
<input type="text" name="textfield2" id="textfield2" />
</label>
<input type="submit" name="button" id="button" value="Submit" />
</form>
<form id="form4" name="form4" method="post" action="">
<label></label>
Forgot your password?
</form> <p> </p></td>
</tr>
<tr>
<td> </td>
<td><h2>Connect with friends and the<br />
world around you on Facebook. </h2></td>
<td><h2>Sign Up</h2>
<div>It’s free and always will be.</div>
<form id="form5" name="form5" method="post" action="">
</form> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><img src="https://scontent.xx.fbcdn.net/hphotos-xap1/t39.2365-6/851565_602269956474188_918638970_n.png" alt="" /> See photos and updates from friends in News Feed. </td>
<td><form id="form6" name="form6" method="post" action="">
<label>
<input type="text" name="textfield3" id="textfield3" />
</label>
</form> </td>
<td><form id="form7" name="form7" method="post" action="">
<label>
<input type="text" name="textfield4" id="textfield4" />
</label>
</form> </td>
</tr>
<tr>
<td height="40"> </td>
<td> </td>
<td colspan="2"><form id="form8" name="form8" method="post" action="">
<label>
<input type="text" name="textfield5" id="textfield5" />
</label>
</form> </td>
</tr>
<tr>
<td height="40"> </td>
<td><img src="https://scontent.xx.fbcdn.net/hphotos-xpa1/t39.2365-6/851585_216271631855613_2121533625_n.png" alt="" /> Share what's new in your life on your Timeline. </td>
<td colspan="2"><form id="form9" name="form9" method="post" action="">
<label>
<input type="text" name="textfield6" id="textfield6" />
</label>
</form> </td>
</tr>
<tr>
<td height="44"> </td>
<td> </td>
<td colspan="2"><form id="form10" name="form10" method="post" action="">
<label>
<input type="text" name="textfield7" id="textfield7" />
</label>
</form> </td>
</tr>
<tr>
<td height="46" rowspan="5"> </td>
<td rowspan="5"><img src="https://scontent.xx.fbcdn.net/hphotos-xap1/t39.2365-6/851558_160351450817973_1678868765_n.png" alt="" /> Find more of what you're looking for with Graph Search. </td>
<td rowspan="5"><p>Birthday</p>
<form id="form11" name="form11" method="post" action="">
<label>
<select name="select" id="select">
</select>
<select name="select2" id="select2">
</select>
<select name="select3" id="select3">
</select>
</label>
</form> <p> </p></td>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><span class="style2">Why do I need to provide my </span></td>
</tr>
<tr>
<td><span class="style2">birthday?</span></td>
</tr>
<tr>
<td height="23"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><form id="form12" name="form12" method="post" action="">
<label>
<input type="radio" name="radio" id="radio" value="radio" />
</label>
<span data-type="radio" data-name="gender_wrapper" id="u_0_g">Female</span>
</form> </td>
<td><form id="form13" name="form13" method="post" action="">
<label>
<input type="radio" name="radio2" id="radio2" value="radio2" />
<span data-type="radio" data-name="gender_wrapper" id="u_0_g2">Male</span></label>
</form> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td colspan="2"><div id="u_0_h">
<p>By clicking Sign Up, you agree to our <a href="https://www.facebook.com/legal/terms" target="_blank" rel="nofollow">Terms</a> and that you have read our <a href="https://www.facebook.com/about/privacy" target="_blank" rel="nofollow">Data Policy</a>, including our <a href="https://www.facebook.com/help/cookies" target="_blank" rel="nofollow">Cookie Use</a>.</p>
</div>
<div></div>
<div></div></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td colspan="2"><form id="form14" name="form14" method="post" action="">
<label>
<input type="submit" name="button2" id="button2" value="Sign up" />
</label>
</form>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
Subscribe to:
Posts (Atom)