7 Replies Latest reply: Feb 26, 2009 3:36 AM by 807588 RSS

    BufferedReader (help me....... please ^_^)

    807588
      can anyone help me? we just got this problem in java programming and i'm kinda stuck. i can only do up to the reading of the .txt file using BufferedReader.

      "Write a program that reads from an input file an M by N grid of letters and a list, L, of words, and, for each word, W, in L, finds the row, R, and column, C, in the grid where the word is found."

      i'm not asking for an entire code..... i just want to ask HOW it is done, especially the diagonal words.

      example:
      input:
      8 12
      abcDEFGhiggx
      hEbkWalDorkT
      FtyAwaldORmr
      FtsimrLqsrcE
      byoArBeDeyvb
      KlcbqwikomkG
      strEBGadhrba
      yUiqlxcnBjfD
      4
      Waldorf
      Bambi
      Betty
      Dagbert


      output:
      Waldorf 2 5
      Bambi 2 3
      Betty 1 2
      Dagbert 7 8