Code example for FloatBuffer

Methods: get, put

0
		LongBuffer lbuffer = buffer.asLongBuffer();
		lbuffer.put(0, 0x123456789abcdef0l);
		System.out.println(lbuffer.get(0));
		 
		FloatBuffer fbuffer = buffer.asFloatBuffer();
		fbuffer.put(0, 123.789123f);
		System.out.println(fbuffer.get(0));
		System.out.println(fbuffer.get(0) == 123.789123f);
		 
		DoubleBuffer dbuffer = buffer.asDoubleBuffer();
		dbuffer.put(0, 123.789123f);
		System.out.println(dbuffer.get(0));
		System.out.println(dbuffer.get(0) == 123.789123f);
  } 
 
  public void draw(int x, int y, int width, int height) {
    drawText(peer, "Hello, World!", 10, 20, 24.0);
    System.out.println("Hursssray, Hurray the dog is dead...");
  } 
 
  private static native void drawText(long peer, String text, int x, int y,