package latihanawal;
/**
*
* @author TRACER
*/
public class lat5 {
public static final double AVOGADRO = 6.02e23;
public static final int CARBON = 12;
public static final int HYDROGEN = 1;
private double mass = 0.0;
private int nrOfHYDROGEN = 0;
private int nrOfCARBON = 0;
private int massperAVOGADRO = 0;
private double molecule = 0.0;
public lat5(double mass, int nrOfHYDROGEN, int nrOfCARBON) {
this.mass = mass;
this.nrOfCARBON = nrOfCARBON;
this.nrOfHYDROGEN = nrOfHYDROGEN;
calcMolecules();
}
Herzlich Willkommen
Live processing contents
Tuesday, February 1, 2011
iseng pemanasan otak yang belet
GATEL
/** To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package latihanawal;
import javax.swing.*;
public class Main {
public static final double PHI= 3.14;
static void test (){
Main t = new Main();
double radius;
}
Labels:
JAVA Programs OOP
Subscribe to:
Posts (Atom)