Bidvertiser

Jumat, 01 April 2011

Parachute Panic


Screen Size: 128x128, 128x160, 176x204, 176x208, 176x220, 230x300, 240x320, 240x400, 240x432, 320x240, 360x640, 480x800

With over 4 million iPhone downloads as of December last year (so expect that number to be higher now), Parachute Panic could be said to have been the Doodle Jump of 2009, such was the level of its success on the App StoreNow the breakout hit is heading to Java mobiles, courtesy of Connect2Media.Parachute Panic is a game in which (possibly) panicked parachutists dive from a plane above in the vain hope of landing on a boat.The original touchscreen version involved drawing the wind and tapping the characters as they fell to ensure their parachutes opened, as well as tapping on UFOs before they abducted your happy stickmen into an evil alien experimentation chamber on the planet Zargon.

Download "Parachute Panic" Java Game

Pro Evolution Soccer 2011


Screen Size: 176x220, 240x320, 360x640

PES 2011 - the unrivalled mobile football experience! More atmosphere, more realism and more excitement than ever before. Compete in the official UEFA Champions League and all new UEFA Europa League competitions against the best club teams in Europe. Lead your national team to victory in international competitions and play against the best in the world or put yourself into the game, with the team editor. PES 2011, you make the moment!

Download "Pro Evolution Soccer 2011" Java Game

Demonstrate multiple catch statements.

 
class MultiCatch {
  public static void main(String args[]) {
    try {
      int a = args.length;
      System.out.println("a = " + a);
      int b = 42 / a;
      int c[] };
      c[4299;
    catch (ArithmeticException e) {
      System.out.println("Divide by 0: " + e);
    catch (ArrayIndexOutOfBoundsException e) {
      System.out.println("Array index oob: " + e);
    }
    System.out.println("After try/catch blocks.");
  }
}

Using a Formatter Object to Load a Buffer

 
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.channels.FileChannel;
import java.util.Formatter;

public class MainClass {
  public static void main(String[] args) {
    String[] phrases = "A""B 1""C 1.3" };
    String dirname = "C:/test";
    String filename = "Phrases.txt";
    File dir = new File(dirname);
    File aFile = new File(dir, filename);
    FileOutputStream outputFile = null;
    try {
      outputFile = new FileOutputStream(aFile, true);
    catch (FileNotFoundException e) {
      e.printStackTrace(System.err);
    }
    FileChannel outChannel = outputFile.getChannel();
    ByteBuffer buf = ByteBuffer.allocate(1024);
    System.out.println(buf.position());
    System.out.println(buf.limit());
    System.out.println(buf.capacity());
    CharBuffer charBuf = buf.asCharBuffer();
    System.out.println(charBuf.position());
    System.out.println(charBuf.limit());
    System.out.println(charBuf.capacity());
    Formatter formatter = new Formatter(charBuf);
    int number = 0;
    for (String phrase : phrases) {
      formatter.format("%n %s", ++number, phrase);
      System.out.println(charBuf.position());
      System.out.println(charBuf.limit());
      System.out.println(charBuf.capacity());
      charBuf.flip();
      System.out.println(charBuf.position());
      System.out.println(charBuf.limit());
      System.out.println(charBuf.length());
      buf.limit(* charBuf.length())// Set byte buffer limit
      System.out.println(buf.position());
      System.out.println(buf.limit());
      System.out.println(buf.remaining());
      try {
        outChannel.write(buf);
        buf.clear();
        charBuf.clear();
      catch (IOException e) {
        e.printStackTrace(System.err);
      }
    }
    try {
      outputFile.close();
    catch (IOException e) {
      e.printStackTrace(System.err);
    }
  }
}

int array to byte array

 
 
 
/*
 * Permission is hereby granted, free of charge, to any person obtaining a copy of 
 * this software and associated documentation files (the "Software"), to deal in 
 * the Software without restriction, including without limitation the rights to 
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 
 * of the Software, and to permit persons to whom the Software is furnished to do
 * so, subject to the following conditions:
 
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 
 * SOFTWARE.
 */

public class ArrayCopy {

    
  public static byte[] int2byte(int[]src) {
    int srcLength = src.length;
    byte[]dst = new byte[srcLength << 2];
    
    for (int i=0; i<srcLength; i++) {
        int x = src[i];
        int j = i << 2;
        dst[j++(byte) ((x >>> 00xff);           
        dst[j++(byte) ((x >>> 80xff);
        dst[j++(byte) ((x >>> 160xff);
        dst[j++(byte) ((x >>> 240xff);
    }
    return dst;
}
}

Minggu, 14 November 2010

[GL] Block Breaker 3 Unlimited

Block Breaker 3 Unlimited
Lng: EN
by Etoo0070

Texas Hold em Poker 2 (by Gameloft)



Whether you’re an accomplished poker player or not, Texas Hold’em Poker 2 is the ultimate poker game for you! Learn all the poker tricks thanks to a more comprehensive Training mode or challenge the advanced AI opponents in wild tournaments. Visit 8 great venues around the world like Dubai or Macau for classic Texas Hold’em or try Omaha mode for an even more comprehensive poker experience.

* • A new Omaha mode for an even richer poker experience
* • Over 20 events to enter and win in 8 great venues worldwide
* • 10 charismatic opponents to face, each with their own personality and style of playing
* • Improved graphics and animations that give even more realism to the game
* • Improved AI and coaching system, allowing every kind of player to enjoy the game
* • A statistics section that gathers info on your past hands and best performances.

128x128: download
128x160: download
SE 128x160: download
176x208: download
208x208: download
S40v3: download
K800: download
W910: download
320x240: download
352x416: download
360x640: download

Bidvertiser