Herzlich Willkommen

Live processing contents

Tuesday, February 1, 2011

contoh mol java

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();
    }

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;
    }

Monday, January 31, 2011

implementasi ADT + Mergesort (JAVA)

BECAUSE WE LOVE EVOLVING SYSTEM

Double Linklist.Java
--------------------------------------------------------------------------------------------------------------
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import java.util.*;
import java.io.*;

Dijktra (simple MAPPING)

djiktra sample
*FILE    1.java
package model;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
import java.util.Vector;


public class Dijkstra
{
  public Integer[] getShortestPaths(WeightedGraph graph, int source)
  {
    int n = graph.size() + 1;

Wednesday, December 29, 2010

ANIMALITY PROLOG FUZZY

go :- hypothesize(Animal),
      write('I guess that the animal is: '),
      write(Animal),
      nl,
      undo.