Enter your keyword

11 April 2014

Polisi Marah Ketika Direkam

By On Jumat, April 11, 2014


Kenapa Harus Takut Untuk Direkam???
Izin???

07 April 2014

Dilarang Berkendara Dalam Keadaan Mabuk

By On Senin, April 07, 2014
Johnnie Walker adalah produsen minuman beralkohol membuat video yang mengkampanyekan larangan mengemudi kendaraan dalam kondisi mabuk.

Infix to Postfix with Java

By On Senin, April 07, 2014
Coding untuk membuat perhitungan dari Infix ke Postfix.
import java.io.IOException;

public class InToPost {
   private Stack theStack;
   private String input;
   private String output = "";
   public InToPost(String in) {
      input = in;
      int stackSize = input.length();
      theStack = new Stack(stackSize);
   }
   public String doTrans() {
      for (int j = 0; j < input.length(); j++) {
         char ch = input.charAt(j);
         switch (ch) {
            case '+':
            case '-':
            gotOper(ch, 1);
            break;
            case '*':
            case '/':
            gotOper(ch, 2);
            break;
            case '(':
            theStack.push(ch);
            break;
            case ')':
            gotParen(ch);
            break;
            default:
            output = output + ch;
            break;
         }
      }
      while (!theStack.isEmpty()) {
         output = output + theStack.pop();
      }
      System.out.println(output);
      return output;
   }
   public void gotOper(char opThis, int prec1) {
      while (!theStack.isEmpty()) {
         char opTop = theStack.pop();
         if (opTop == '(') {
            theStack.push(opTop);
            break;
         }
         else {
            int prec2;
            if (opTop == '+' || opTop == '-')
            prec2 = 1;
            else
            prec2 = 2;
            if (prec2 < prec1) {
               theStack.push(opTop);
               break;
            }
      else
            output = output + opTop;
         }
      }
      theStack.push(opThis);
   }
   public void gotParen(char ch){
      while (!theStack.isEmpty()) {
         char chx = theStack.pop();
         if (chx == '(')
         break;
         else
         output = output + chx;
      }
   }
   public static void main(String[] args)
   throws IOException {
      String input = "1+2*4/5-7+3/6";
      String output;
      InToPost theTrans = new InToPost(input);
      output = theTrans.doTrans();
      System.out.println("Postfix is " + output + '\n');
   }
   class Stack {
      private int maxSize;
      private char[] stackArray;
      private int top;
      public Stack(int max) {
         maxSize = max;
         stackArray = new char[maxSize];
         top = -1;
      }
      public void push(char j) {
         stackArray[++top] = j;
      }
      public char pop() {
         return stackArray[top--];
      }
      public char peek() {
         return stackArray[top];
      }
      public boolean isEmpty() {
         return (top == -1);
     }
   }
}
Result:
The above code sample will produce the following result.

124*5/+7-36/+
Postfix is 124*5/+7-36/+

06 April 2014

How to Display Date and Time with Java

By On Minggu, April 06, 2014
Cara menampilkan Tanggal dan Waktu menggunakan coding dengan Java.
import java.util.*;
import java.util.*;

class GetCurrentDateAndTime
{
   public static void main(String args[])
   {
      int day, month, year;
      int second, minute, hour;
      GregorianCalendar date = new GregorianCalendar();
 
      day = date.get(Calendar.DAY_OF_MONTH);
      month = date.get(Calendar.MONTH);
      year = date.get(Calendar.YEAR);
 
      second = date.get(Calendar.SECOND);
      minute = date.get(Calendar.MINUTE);
      hour = date.get(Calendar.HOUR);
 
      System.out.println("Current date is  "+day+"/"+(month+1)+"/"+year);
      System.out.println("Current time is  "+hour+" : "+minute+" : "+second);
   }
}
Note :
Untuk meng-copy klik "View plain"

Download GameGuardian 6.0.5 APK

By On Minggu, April 06, 2014
Overview :
Without it, you are played by games; with it, you play games in your own rules!
“Game Guardian” is a game hack/alteration tool. With it, you can modify money, HP, SP, and much more. You can enjoy the fun part of a game without suffering from its unseasonable design.

Requires Android : 2.2 and up

** ROOT ONLY **
This tool only works in rooted devices!!

Main Features :
1. Search game value with precise number.
2. Search game value with vague instructions, e.g. larger or smaller.
3. Lock the game value to a fixed number.
4. Save/Load the managed list.
5. Touch Guardian sprite to bring up the tool during gaming.
6. Change game speed.

01 April 2014

LTN - Just Another Day & Fair Isle [Teaser]

By On Selasa, April 01, 2014
Lokal Trance Hero. Here is LTN