| Home | JSP | EJB | JDBC | Java Servlets | WAP | Free JSP Hosting | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML | ||||
|
||||
|
|
||||
| Tutorial Categories: Ajax
| Articles
| JSP
| Bioinformatics
| Database
| Free
Books |
Hibernate
| J2EE
| J2ME
| Java
| JavaScript
| JDBC
| JMS
| Linux
| MS
Technology |
PHP
| RMI
| Web-Services
| Servlets
| Struts
| UML
|
|
||||||||||||||||||||||||||||||
|
Home | JSP | EJB | JDBC | Java Servlets | WAP | Free JSP Hosting | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs |
||||||||||||||||||||||||||||||
Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.
Copyright © 2007. All rights reserved.
Current Comments
1 comments so far (post your own) View All Comments Latest 10 Comments:public class Fraction {
private int myNum, myDenom;
private double myValue;
/**Creates a new instance of Fraction*/
public Fraction() {
myNum=1;
myDenom=1;
myValue=1.0;
}
public Fraction(int n,int d)
{
myNum=n;
myDenom=d;
myValue=(double)n/(double) d;
}
private static Fraction parseInput(String s)
{
int slash,n,d;
slash=s.indexOf("/");
//add code to complete method here
Fraction f=new Fraction(n,d);
return f;
}
Posted by jorge on Monday, 12.8.08 @ 21:59pm | #82527