Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Java Dictionary

okrai
okrai 


menu driven program which accepts specific words and their meaning Attachments Tags Clarifications

Answers

Java Dictionary

sudheer488
sudheer488 



Sorce code along with the outputs pasted in doc file & sample screenshots were pasted below Attachments
dictionary.rar (2 K) Download
Preview
obsolete word:") .toUpperCase(); try { al=diction.remove(word); WordMeaningNode list; for(int i=0;i<al.size();i++){ list=(WordMeaningNode) al.get(i); entry = new WordMeaning(list.getWordMeaning().getName(), list.getWordMeaning().getDefinition()); diction.add(entry); } obsolete.add(new WordMeaning(word, " ")); JOptionPane.showMessageDialog(null, word + "has been removed!", "Word Removal", JOptionPane.INFORMATION_MESSAGE); } catch (NullPointerException

Preview
return Integer.parseInt(getString(s)); } static String getString(String s) {

Preview
else{ while(current != null) { if(current.getWordMeaning().getName().equalsIgnoreCase(s)){ } else{ temp2=current; al.add(current); } current=current.next; } } //temp1=(WordMeaningNode) al.get(0); //System.out.println("affter removal"+temp1.getWordMeaning().getName()); list=null; return al; } boolean listIsEmpty()

Preview
{ return name; } String getDefinition() { return definition;}

Preview
} public WordMeaning getWordMeaning() { return wordMeaning;

Doc1.doc (2895 K) Download
output1.PNG (116 K) Download Preview

output2.PNG (167 K) Download Preview

Screenshots
Screenshot
Screenshot
Purchase Answer

Java Dictionary

felo
felo 



Find attached solution Attachments
Screenshots
Purchase Answer

Java Dictionary

felo
felo 



Find attached solution Attachments
Dictionary.java (4 K) Download Preview
JOptionPane.showMessageDialog(this, "The word you tried to remove was not in the dictionary!" + "\nEnsure proper capitalization!"); } if (success) JOptionPane.showMessageDialog(this, "The word: "+word+" has been deleted!"); } private void viewDeletedWords() { text = new JTextArea(); text.setEditable(false); text.setText(deleted.toString()); if (text.getText().equals(""))

WordList.java (3 K) Download Preview
remove(String word){ try { WordMeaningNode aux = list; WordMeaningNode back = null; boolean found = false; while(aux != null && !found){ if (word.equals(aux.word.getWord())){ found = true; } else{ back = aux; aux = aux.next; } }

WordMeaning.java (1 K) Download Preview
throws NullPointerException{ if (meanings.size() == 1) return meanings.get(0); return null; } @Override public String toString(){ ListIterator<String> iterator = meanings.listIterator(); String current = iterator.next(); String result = word+" -

WordMeaningNode.java (1 K) Download Preview
public WordMeaningNode next; public WordMeaningNode(WordMeaning word){ this.word = word; next = null; } public WordMeaningNode(WordMeaning word, WordMeaningNode next){ this.word =

addingword (2).png (169 K) Download Preview

Delting Word.png (169 K) Download Preview

Existing words.png (156 K) Download Preview

Screenshots
Screenshot
Screenshot
Screenshot
Purchase Answer