Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Minesweeper java problem

  1. #1
    Junior Member
    Join Date
    Feb 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Minesweeper java problem

    i was starting to make java programmed games so i started on a Minesweeper game..
    i saw this problem but i don't know how to continue it...
    i started using file processing(where you will get a notepad file input then output it in notepad too)
    i also used the args for the file input
    please help... this is the worded problem and instructions(you can download the file here): : Minesweeper set.rar - Windows Live

    any help would be appreciated

    my initial code is
    import java.util.*;
    import java.io.*;
     
    public class Minesweeper {
     
        public static void main(String[] args)throws IOException {
        	Scanner basa = new Scanner(new File(args[0]));
        	String[] grid = basa.nextLine().split(" ");
        	int row = Integer.parseInt(grid[0]);
        	int col = Integer.parseInt(grid[1]);
        	int coord[][] = new int[row][col];
        	while(basa.hasNextLine()){
        	}
     
        }
     
    }

    please continue....


  2. #2
    Junior Member
    Join Date
    Feb 2010
    Posts
    10
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: Minesweeper java problem

    Wrong section m8, post it over here:
    What's Wrong With My Code? - Java Programming Forums

Similar Threads

  1. Election Java Problem
    By ronz in forum What's Wrong With My Code?
    Replies: 0
    Last Post: November 13th, 2009, 04:30 PM
  2. please could you help me with this java problem im very lost
    By eyeore in forum Java Theory & Questions
    Replies: 4
    Last Post: September 7th, 2009, 09:19 AM
  3. java problem
    By Mj Shine in forum Java Theory & Questions
    Replies: 1
    Last Post: August 14th, 2009, 12:24 AM
  4. [SOLVED] minesweeper game creation problem
    By kaylors in forum What's Wrong With My Code?
    Replies: 5
    Last Post: June 27th, 2009, 04:06 PM
  5. [SOLVED] JAVA JList Problem in visual images
    By antitru5t in forum AWT / Java Swing
    Replies: 4
    Last Post: April 15th, 2009, 03:09 PM

Tags for this Thread