Posts

Android - GPS Tutorial

How GPS Works from Junho Kim Android GPS Tutorial from Ahsanul Karim

Yarl IT Hub Session on Sales and Marketing

Image

Is there a God In Tamil Dr. Zakir Naik Part 2 of 2

Image

Is there a God In Tamil Dr. Zakir Naik Part 1 of 2

Image

Where did Jesus made a mistake? - A question to Dr. Zakir Naik

Image

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 numEntries; public Scores(){ entries = new GameEntry[maxEntries]; numEntries =0; } public void setEntry(String name, int score){ GameEntry gE  = new GameEntry(name,score); if(numEntries ==0){ entries[numEntries] = gE; numEntries++; } else if(numEntries >0 && numEntries !=0 && numEntries<=10){ entries[numEntries]...

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); } else{ valid_token = true; } } } if(valid_token){ holeStore[row-1][col-1] = Integer.toString(token); System.out.println("Your Token is : "+token); } } void set_Null(int row, int col){ holeStore[row-1][col-1] = "Free"; } void findHole(int token){ boolean is_found = false; for(int i=0; i<Nrow; i++){ for(int j=0; j<Ncol; j++){ if( holeStore[i][j].equals(Integer...