Click here to Skip to main content
15,888,802 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to retrieve a list of sheet from excel with odbc in c#? Pin
Csharp™25-Aug-03 11:43
Csharp™25-Aug-03 11:43 
GeneralRe: how to retrieve a list of sheet from excel with odbc in c#? Pin
zoltix25-Aug-03 22:47
zoltix25-Aug-03 22:47 
GeneralDataGridTextBoxColumn.WidthChange to trigger method Pin
mikemilano25-Aug-03 6:49
mikemilano25-Aug-03 6:49 
GeneralRe: DataGridTextBoxColumn.WidthChange to trigger method Pin
Roger Stewart25-Aug-03 7:25
professionalRoger Stewart25-Aug-03 7:25 
GeneralRe: DataGridTextBoxColumn.WidthChange to trigger method Pin
mikemilano25-Aug-03 7:48
mikemilano25-Aug-03 7:48 
QuestionC# Profiling?!? Pin
Alberto Bencivenni25-Aug-03 5:37
Alberto Bencivenni25-Aug-03 5:37 
AnswerRe: C# Profiling?!? Pin
leppie25-Aug-03 8:38
leppie25-Aug-03 8:38 
GeneralRe: C# Profiling?!? Pin
Anonymous25-Aug-03 10:22
Anonymous25-Aug-03 10:22 
GeneralRe: C# Profiling?!? Pin
Alberto Bencivenni25-Aug-03 10:40
Alberto Bencivenni25-Aug-03 10:40 
GeneralNewby Application.StartupPath Problem Pin
GostWryter25-Aug-03 3:06
GostWryter25-Aug-03 3:06 
GeneralRe: Newby Application.StartupPath Problem Pin
David Stone25-Aug-03 4:58
sitebuilderDavid Stone25-Aug-03 4:58 
GeneralRe: Newby Application.StartupPath Problem Pin
GostWryter26-Aug-03 2:01
GostWryter26-Aug-03 2:01 
Generaljava Word maker help required Pin
seunao25-Aug-03 1:43
seunao25-Aug-03 1:43 
GeneralRe: java Word maker help required Pin
Julian Bucknall [MSFT]25-Aug-03 10:25
Julian Bucknall [MSFT]25-Aug-03 10:25 
GeneralRe: java Word maker help required Pin
Ista25-Aug-03 15:20
Ista25-Aug-03 15:20 
Julian Bucknall [MSFT] wrote:
Mmm, this sounds awfully like you're asking us to do your homework for you. It seems to me that you'd get the most benefit from solving it yourself.

Plus, there's a slight problem in that this is a C# message board, and not a java one.

Anyway, very high level. For the word list, arrange to have the words one per line in a text file. Use Java's standard text file IO to read the file, and use a hash table (or string dictionary, or symbol table, or whatever it's called in java-land). By using such a collection class, you'll get fast lookups of possible words (if found, the word exists, if not, the word doesn't).

For the letter grid problem (that is, finding our all possible letter sequences without repeating a letter), I would look into network or graph algorithms. It sounds like a depth first search might do you best.

For each letter sequence you find, look it up in your hash table.


Not bad julian

Dont forget to use a BufferedReader and BufferedWriter class to read the files.
use the hastable collection for searching
the Iterator class to step through since Enumerators are horrible
For the grid I would use a JTable, you are using Swing right. You can use AWT but ( its faster ) but involves a deeper understanding of the Java API which I doubt you have.

Study grid layouts and you would have to encompass it all in a Jframe. Use the IO library for the file reading. A buffered Reader makes it easy.

Other questions, please direct them to They can help more with your homework!

nick



I'm not an expert yet, but I play one at work. Yeah and here too.
GeneralCombo Box in ToolBar Pin
azusakt24-Aug-03 23:33
azusakt24-Aug-03 23:33 
GeneralRe: Combo Box in ToolBar Pin
Furty25-Aug-03 5:42
Furty25-Aug-03 5:42 
GeneralRe: Combo Box in ToolBar Pin
Ista25-Aug-03 15:28
Ista25-Aug-03 15:28 
GeneralRe: Combo Box in ToolBar Pin
Nick Parker25-Aug-03 17:40
protectorNick Parker25-Aug-03 17:40 
GeneralRe: Combo Box in ToolBar Pin
Ista25-Aug-03 17:43
Ista25-Aug-03 17:43 
GeneralRe: Combo Box in ToolBar Pin
Nick Parker25-Aug-03 18:31
protectorNick Parker25-Aug-03 18:31 
GeneralRe: Combo Box in ToolBar Pin
Ista26-Aug-03 3:26
Ista26-Aug-03 3:26 
GeneralObject reference not set to an instance of an object. Pin
HJo24-Aug-03 23:16
HJo24-Aug-03 23:16 
GeneralRe: Object reference not set to an instance of an object. Pin
Roger Stewart25-Aug-03 7:43
professionalRoger Stewart25-Aug-03 7:43 
GeneralRe: Object reference not set to an instance of an object. Pin
HJo25-Aug-03 20:30
HJo25-Aug-03 20:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.