Skip to content

Instantly share code, notes, and snippets.

View mherman22's full-sized avatar
:octocat:
Try again and again and again

Herman Muhereza mherman22

:octocat:
Try again and again and again
View GitHub Profile
@mherman22
mherman22 / More understanding of Java gui
Created March 29, 2020 07:34
more understanding of java gui. #from analysis to design
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:");
/**
* Java implementation of the Bisection method for solving equations.
*
* @author samuel
*/
public class Bisection {
private static final float TOLORANCE = (float) 0.01;
/**