Android – GPS Tutorial

How GPS Works from Junho Kim Android GPS Tutorial from Ahsanul Karim //pagead2.googlesyndication.com/pagead/show_ads.js Advertisements

Game Entry

***************************************************************************public class GameEntry{ public String name; public int score; public GameEntry(String n, int s){ name = n; score = s; } public String getName(){ return name; } public int getScore(){ return score; } public String toString(){ return “(“+name+”,”+score+”)”; } }**************************************************************************import java.util.Scanner;public class Scores{ public static final int maxEntries = 10; public GameEntry[] entries; public int…

Hole with Random Generator

import java.util.Scanner;public class randomHole{ String[][] holeStore; static int Ncol=5; static int Nrow=3; int token; randomHole(){ holeStore = new String[Nrow][Ncol]; for(int i=0; i<Nrow; i++){ for(int j=0; j<Ncol; j++){ holeStore[i][j] = “Free”; } } } void set_full(int row,int col){ findToken(); boolean valid_token = false; for(int i=0; i<Nrow; i++){ for(int j=0; j<Ncol; j++){ if(holeStore[i][j] == Integer.toString(token)){ set_full(row,col); }…

Hole without random

import java.util.Scanner;public class hole2{ String[][] holeStore; int Ncol=5; int Nrow=3; int token; hole2(){ holeStore = new String[Nrow][Ncol]; for(int i=0; i<Nrow; i++){ for(int j=0; j<Ncol; j++){ holeStore[i][j] = “Free”; } } } void set_full(int row,int col){ findToken(row,col); holeStore[row-1][col-1] = Integer.toString(token); } void set_Null(int row, int col){ holeStore[row-1][col-1] = “Free”; } void findHole(int token){ boolean is_found =…

Selection Sort

  these picture shows that the algorithm of the selection sort the code is below in (java)******************************************************************public class selectionSort{ public void sort(int[] A){ for(int i=0; i<A.length; i++){ int minIndex =i; for(int j=i; j<A.length; j++){ if(A[minIndex] > A[j]){ minIndex = j; } }   // Swapping the minIndex Element and first element  int temp = A[i]; A[i]…

An A-Z Index of the Bash command line for Linux.

alias Create an alias • apropos Search Help manual pages (man -k) apt-get Search for and install software packages (Debian/Ubuntu) aptitude Search for and install software packages (Debian/Ubuntu) aspell Spell Checker awk Find and Replace text, database sort/validate/indexb basename Strip directory and suffix from filenames bash GNU Bourne-Again SHell bc Arbitrary precision calculator language bg…