This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package gui; | |
import javax.swing.*; //i am to use JOptionPane | |
public class Rectangle { | |
public static void main(String[] args) { | |
// TODO Auto-generated method stub | |
double width, length, area, perimeter; | |
String lengthstr, widthstr, outputstr; | |
lengthstr = JOptionPane.showInputDialog("Enter the Length:"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Java implementation of the Bisection method for solving equations. | |
* | |
* @author samuel | |
*/ | |
public class Bisection { | |
private static final float TOLORANCE = (float) 0.01; | |
/** |
NewerOlder