implemented bfs and dfs in c using arup's stack and queue sample program. Now just implement it in java and you're gold