Flabby Rabbit | The offical home of The Rabbit
Creating JSON Objects with Android
After starting a new project utilizing Android and a server written in C++ I noticed that although Android has a built in JSON library there is little to no information about how to implement anything useful. The majority of responses online point users to using an additional library such as GSON. This is all well [...]
Implementing VLC support in Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package vlcj; import java.awt.BorderLayout; import java.awt.Canvas; import java.awt.Color; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.JFileChooser; import javax.swing.JFrame; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JPanel; import javax.swing.SwingUtilities; import uk.co.caprica.vlcj.player.MediaPlayer; import uk.co.caprica.vlcj.player.MediaPlayerFactory; [...]
Sorting – BubbleSort
package com.flabbyrabbit.snippets.sorting; /** * Optimised bubble sort, allowing for both ascending and descending sorts. * * @author Luke Ward * @version 1.0 * @category Sorting */ public class BubbleSort { public void bubbleSort(int array[]) { bubbleSort(array, true); } /** * Takes [...]