~HAPPY BIRTHDAY JAVA!!~

~HAPPY BIRTHDAY JAVA!!~

Play with Us!


Via: Video Blog

Note: Don't Get Hit By Blue Balls! Keep your Red Square away from the Blue Balls on your way to the Green Zone or you'll DIE! And trust ME; you'll die. A lot.
HTML Comment Box is loading comments...

Linggo, Setyembre 16, 2012

GUI and AWT

Hello friends! this is our presentation that tackles about the GUI and AWT of Java Programming Language. Hope you will learn more and more.
READ MORE:>https://docs.google.com/presentation/pub?id=1DGUuDDg1pkMFKpaFXyvfGvZduaCW7rQEUepCKp1IbSQ&start=false&loop=false&delayms=3000
FOR MORE INFO. FOR THE AWT OF JAVA JUST CLICK THIS:
http://oreilly.com/openbook/javawt/book/ch01.pdf

Lunes, Setyembre 10, 2012

Class Assignment

import javax.swing.JOptionPane;
Public class FareMetrics{
     Public FareMetrics(){
     }
     Public static void main (String [] args)
     {
           String kilometer;
           faremetrics result = new faremetric();
           double total;
           kilometer = JOptionPane.showInputDialog ("Enter no. of kilometer:");
           result.set kilometer(kilometer);
           JOptionPane.showMessageDialog (null,"FareMetrics\n" + "No. of Kilometers:" + result.get
           kilometer() + "Fare in Peso:" + result.get total ());
     }
     Class faremetrics
     {
           private string km;
           private int t;

           public string get kilometer () {
                  return km;
           }
           public void set kilometer (String k){
                  km=k
           }
           public double get total() {
                  total = ((kilometer /5) *20.00)+((kilometers%5)/.50);
                  return total;
}