Glossary Table Of English And French Words - How To Delete Duplicate Records
Jun 24, 2014
Environment: Windows7
Tools: Dreamweaver CS6
Level: Novice
Introduction: There is a glossary table of English and French words. The glossary table has duplicate rows and is out of order. I would like to remove the duplicates and sort them by the English column.
1. Open the glossary.html file in your browser, you will see a table on the left with an English column and a French column. On the right hand side of the screen you will see the unit test results. As you complete each TODO the unit tests will pass.
2. There are five areas marked TODO in the glossary.html file,
complete all of the TODOs. Check that all of the unit tests pass. This test project uses the following frameworks:
* BackBone.js - [URL] ...
* Underscore.js - [URL] ...
* jQuery - [URL] ...
* Bootstrap - [URL] ...
The following link will take you to source code : [URL] ...
View Replies
ADVERTISEMENT
Apr 20, 2015
I am having some difficulty adding a new item to the HashTable when a collision occurs. We can only use the basic utilities to code this, so we are coding a HashTable by hand. We have an array of length of 10, which each index holds or will hold a Node for a Linked List.
The code hashes fine, adds the item, but the problem exists when adding items that already been hashed. The project is much bigger, but this is the engine behind the rest, and I figured I would tackle this first.
The items we are adding are objects which are states containing different information, we hash based on the ASCII sum % tableSize.
Here is the code I am testing with to add items:
HashTable ht = new HashTable(10);
State az = new State("Arizona","AZ","W",2,"Y",2);
State fl = new State("Florida", "FL", "F", 2, "X", 2);
State hi = new State("Hawaii", "HI", "H", 3, "Z", 1);
State al = new State("Alabama", "AL", "A", 5, "W", 0);
ht.insert(hi);
[Code] ....
View Replies
View Related
Oct 30, 2014
Below is my code
<%--
Document : closeAc
--%>
<%@page import="javax.swing.JOptionPane"%>
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" import="java.sql.*, java.util.Date;"%>
<%
try {
request.setCharacterEncoding("UTF-8");
response.setCharacterEncoding("UTF-8");
[code]....
All I'm trying to do is to search the data from the database and is doesn't show up!
View Replies
View Related
Oct 16, 2014
java api that convert speech to text but complete english not predifined words only.
View Replies
View Related
Aug 2, 2014
I'm new in JSF, so maybe this is a very simple problem:
My small application uses 'primefaces ' and I'd like to display the course of some laboratory values this way:
Parameter2014-08-022014-08-012014-07-31
Natrium [mmol/l]140.0135.0135.5
Calcium [mmol/l]2.12.02.3
Kalium [mmol/l]4.34.05.3
[...] [mmol/l]1.32.02.3
Data is stored in a per day manner, so each table column shows one record.
In JSF, I've only seen tables showing records in rows. How to display a transposed data table in JSF.
View Replies
View Related
Aug 2, 2014
I'm new in JSF, so maybe this is a very simple problem: My small application actually uses 'primefaces ' and I'd like to display the course of some laboratory values this way:
Parameter2014-08-022014-08-012014-07-31
Natrium [mmol/l]140.0135.0135.5
Calcium [mmol/l]2.12.02.3
Kalium [mmol/l]4.34.05.3
[...] [mmol/l]1.32.02.3
Data is stored in a per day manner, so each table column shows one record.
In JSF, I've only seen tables showing records in rows. How to display a transposed data table using a component framework in JSF.
View Replies
View Related
Nov 17, 2014
I have a need to refresh my database for every 15 seconds. I have to work with jsp ajax and jquery. For small amount of db entries it is ok but My application is going to handle huge records more than 20000. In my present scenario, Im forwarding request to another jsp page which communicate db and returns a table as result. Instead of this what are things I need to do?? This is just a sample application only. On success I am gonna implement using Spring, hibernate. So instead of table returning json or arraylist like that will work??
Here is my code:
## index.jsp ##
<!-- begin snippet: js hide: false -->
<!-- language: lang-html -->
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page import="java.sql.*" %>
[Code] .....
View Replies
View Related
May 27, 2014
question: A stored procedure to insert records into deliveries table HINT create stored procedure with parameters for each field in the deliveries table for ex customer address, phone, email and receivers’s address etc this is my answer, this store procedure right or wrong. if wrong, can you share with me
create or replace PROCEDURE ADD_ORIENT
(
EXCUSTOMER_NAME IN VARCHAR2
, EXCUSTOMER_PHONE IN VARCHAR2
, EXCUSTOMER_EMAIL IN VARCHAR2
, EXCUSTOMERRECEIVERADDRESS IN VARCHAR2
) AS
BEGIN
NULL;
END ADD_ORIENT;
View Replies
View Related
Feb 16, 2014
My programms is working perfectly except for one little detail that annoys me. I have a JTable with a button on the first column that allows to delete this row from the table. Its working well except when I try to delete the last row of the table, the button stay there and then the table freeze and i can't delete any rows because i receive a "Out of bound Exception" . But, when I use the command table.getRowCount());
Before and after the removal of the line, the table "knows" that a line was removed but as i said, the button stay there. The screenshots in thumbnails show the situation before and after clicking the button next to the "Year" cell.
It's good to add that i'm adding rows in the table from a button outside the table.
Heres my code:
Main.java
static String [] title = {"X","Nom","SRM","Rend.","%","Kg",};
static Object[][] contenu;
static DefaultTableModel model1 = new DefaultTableModel(contenu, title);
static JTable tableauGrains = new JTable(model1);
tableauGrains.getColumn("X").setCellRenderer(new ButtonRenderer());
tableauGrains.getColumn("X").setCellEditor(new ButtonEditor(new JCheckBox()));
ButtonRenderer.java
[Code] ....
View Replies
View Related
Jan 22, 2014
Problem code:
JSP 1:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@page import="java.sql.*;" %>
<%!Connection con;%>
<%!Statement stmt = null;%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[URL]...">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
[Code]...
View Replies
View Related
Apr 6, 2014
I have a java file 'Arithmetic.java', in which i have 2 overridden method.Now i wanted to read this file and i need to print all the method signature lines,if i found same(overridden method)signature then i have to print "overridden method found". once i find the overridden method i have to suffix the method name as methodName_overridden1, methodName_overridden2 and so on...
package com.abcd.arithmetic;
public class AllArithmatic
{
public Integer add(int x,int y,int z)
{
return (x+y-z);
}
public Float substract(float x, float y)
[code]....
till now i am able to read the lines, able to read the method names as well. but while putting the entire method signatures into an string array and the suffixing part , i am not able to proceed. The condition i have put to find out oerridden method is nnot working.i am stucked in comparing the duplicate method
//Finds Method Name, Method Return Type
if(indexOfMethod >-1 && indexOfOpenBrace >-1){
int uniqueWordsInFile=0;
//Method signature Start
//System.out.println("method line="+line.trim());
List<String> methodList = new ArrayList<String>();
methodList.add(line.trim());
[code]....
View Replies
View Related
Nov 28, 2014
I'm working on a project where I have to take an input text file with terms and create a glossary with hyperlinks. I've got it working halfway. It outputs the html files for some but not all of the terms and I can't figure out why.
I'm getting these errors:
Please enter the location of the input file: data/terms.txt
Please enter the location for the glossary: data/testOutput
Exception in thread "main" java.util.ConcurrentModificationException
at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:953)
[Code] .....
How would I fix them??
Code :
import java.util.Comparator;
import components.map.Map;
import components.map.Map2;
import components.queue.Queue;
import components.queue.Queue2;
import components.sequence.Sequence;
[Code] ....
View Replies
View Related
Apr 15, 2015
Write a menu driven program that either accepts words and their meanings, or displays the list of words in lexicographical order (i.e. as in a dictionary). When an entry is to be added to the dictionary you must first enter the word as one string, and then enter the meaning as separate string. Another requirement - from time to time words become obsolete. When this happens, such word must be removed from the dictionary.
Use the JOptionPane class to enter the information.
Use the concept of linked list to carryout this exercise. You will need at minimum the following classes:
- A WordMeaning class that hold the name of a word and its meaning.
- A WordMeaningNode class that creates the node of information and its link field.
- A WordList class that creates and maintain a linked list of words and their meanings.
- A Dictionary class that test your classes.
For the output, the program should produce two scrollable lists:
- The current list of words and their meanings.
- The list of the deleted words. You need not list the meanings, just the words.
So far, I have everything coded except for the remove method, and I am not sure how to code that. I coded the add method already, but now I don't know where to begin with the remove method in my WordList class. My classes are below.
WordMeaning Class:
public class WordMeaning {
String name;
String definition;
WordMeaning(String t, String d) {
name = t;
definition = d;
[Code] .....
View Replies
View Related
Jan 30, 2015
The assignment is to create a program that accepts entries from a user for 3 variables then saves the data to a file. There are other programs that use the file created. One program displays the non-default records. The next program allows the user to enter the id for the employee and displays the first and last name for that id number. The last program allows the user to enter a first name. It then displays all id numbers and last names for records with that first name.
Given the above situation, I am stuck on creating the first program. I can make the text file and write the information to it. However, when the file is created, a space is placed in between each entry for some reason. I cannot figure out how to get rid of this space so that I can display the appropriate records for the remaining programs. Below is the code and a view of my problem.
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.file.*;
import java.io.*;
import static java.nio.file.StandardOpenOption.*;
import java.util.*;
public class WriteEmployeeList {
[Code] .....
The values for nameFormat and lnameFormat are 10 spaces. This is how the book told me to make sure everything is uniform and searchable. The file contents look like this when viewed in notepad.
000, ,
000, ,
000, ,
000, ,
000, ,
123,Justin,Slacum
124,Justin,Jones
125,James,Smithy
126,Jake,Flabernathy
127,John,Panakosfskee
128,SuzetteMae,Ginther
000, ,
000, ,
000, ,
000, ,
000, ,
000, ,
000, ,
View Replies
View Related
Oct 21, 2014
any method or common algorithm to change a number taken from input to the word for that number? Such as input being "4", output would be "four", at least up to 59 as the larger program I'm trying to make involves time
View Replies
View Related
Jul 28, 2014
i have a jsp page which contains two text areas inside two separate form tags. i want to submit unicode date in one textarea and display it in another. But nothing is working for me. i have to show basically all Indian Languages and english as well. here is the code of it
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page pageEncoding="UTF-8" %>
<%@ page language="java" %>
[Code]....
View Replies
View Related
Jul 26, 2014
So I've been writing a program that converts user input from English to Morse Code and vice versa.
Here's my code:
public class Project1 {
private final static String [] English = { "a","b","c","d","e","f","g","h","i","j","k","l", "m","n","o","p", "q","r","s","t","u","v","w","x","y","z", " ","1","2","3","4","5","6","7","8","9","0"};
private final static String [] Morse = { ".-", "-...", "-.-/>/>/>/>.", "-..", ".", "..-.", "--.", "....", "..",".---", "-.-/>/>/>/>", ".-..", "--", "-.", "---", ".--.", "--.-/>/>/>/>", ".-.", "...", "-","..-","...-" , ".--" ,"-..-","-.-/>/>/>/>-", "--..", "|", ".----", "..---", "...--", "....-", ".....", "-....","--...","---..", "----.", "-----" };
public static void main( String [] args ) {
int n = Input.getInt( "Enter 1 for Morse to English, 2 for English to Morse." );
switch ( n ) {
[Code] ....
When I compile my program, I get the error message: "illegal start of expression" at my toEnglish and toMorse methods, as well as " ';' expected " at the same place.
View Replies
View Related
Aug 23, 2014
I am trying to make a translator program that will convert english to my custom binary. It works going from english to binary, but not going from binary to english.
import java.util.Scanner;
public class Translator
{
public static void main ( String [] args ) {
Scanner input = new Scanner( System.in );
System.out.print( "Would you like to convert English to Binary (yes or no)? " );
String answer = input.nextLine();
[Code] .....
View Replies
View Related
Jan 12, 2014
Below is part Two the method I need creating:
This method updates the sequence of stars according to the actual English word and the guess character.
public static String updateSecretWord(String secretWord, String englishWord, String guessedChar)
{
}
Below is the example of how it should look like when I call it
updateSecretWord(“*****”, “Hello”, “h”) = h****
updateSecretWord(“h****”, “Hello”, “o”) = h***o
updateSecretWord(“he**o”, “Hello”, “e”) = he**o
View Replies
View Related
Apr 5, 2015
I am making a java program that translates English into Pirate. I need working with the Word Pair class. I'm not sure what needs to be passed to the default constructor. And how to do the method that will take the words and pair them. here is my code and the dictionary file
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class PirateTranslator {
public static void main(String[] args)
[Code] .....
View Replies
View Related
Aug 25, 2014
I'm having some trouble with getting this program to read an input of morse code and then produce an output of English. When typing in morse code for the phrase 'the string', the output looks something like this:
- .... .
t
h
... - .-. .. -. --.
s
t
r
i
n
The English-->Morse works just fine.
import java.util.Scanner;
public class project1
{
static final String[] alpha = {
"a", "b", "c", "d", "e", "f", "g", "h", "i",
"j", "k", "l", "m", "n", "o", "p", "q", "r",
"s", "t", "u", "v", "w", "x", "y", "z", " "
[Code] .....
View Replies
View Related
Mar 23, 2015
How to define Cell in the table by table event?
I need to process one component drag to the table. I misunderstand, how I can see to which Cell fall the component. I tried to use Event and Mouse event handlers in my custom Cell, but they do not work. I can copy the drag event to the table and table handles it, but how to get needed Cell I cant understand.
View Replies
View Related
Aug 22, 2014
give code snipt how can achieve to duplicate values add/allow to Set.
View Replies
View Related
Jan 29, 2014
How can i check the reference that is not duplicate and date format is DDDCCYYnnnnnnn, CC must be 20 and YY must not be less than the current year, nnnnnnn is the sequetial number of the file and to complete the 7 numeric characters, zero's must be populated in front of the number. DDD must be a valid reporting entity code. there must not be a duplicate. Code I try
private boolean test-date()
{
String s_Ref = this.transactionFile.getsReference();
boolean flag = true;
if(!isValidPattern(s_Ref, "[0-9]{14}"))
[Code] ....
The reference number is like 201401030234509
If there is duplicate show error code 105
View Replies
View Related
Mar 13, 2014
This is my codes in a button that if I click it . that information will send to Jtable but the problem is the jtable is in another frame so how can i connect this ?
DefaultTableModel model = (DefaultTableModel)
new admin().tableBagtags.getModel();
if (txtName.getText().equals("")) {
JOptionPane.showMessageDialog(null, "Please fill out all fields.", "Error!", JOptionPane.ERROR_MESSAGE);
[Code] .....
View Replies
View Related
Apr 29, 2014
I'm trying to add some mysql table columns to JSF table. And I'm getting error:
/index.xhtml: The class 'logon.User' does not have the property 'description'.
User.java
package logon;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
[Code]...
View Replies
View Related