No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
16 Posted Topics
Hi guys, I tried to get each line of the text file and convert it to SHA-1 formart then to binary but i could not get the output when i tried to do system.out.println the code: package hash; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.Formatter; import java.io.*; import java.security.DigestInputStream; import java.util.logging.Level; … | |
Hi guys, How can i read a specific line of the text file for example: user1 : johnson number of parts1 : 5 number of parts2 : 10 user2 : andy number of parts1 : 10 number of parts2 : 10 and i want to get the total number of … | |
Hi guys, I am doing a validation form (3 inputs: number of apple, orange and banana). for example i type: 'a' as input in the form that required only number (apple), it will prompt me error then i type the next input orange: 2 and it will accept it, however … | |
Re: Hmm..i suggest u put in code tag so easier to read on this forum. cheers | |
Hi guys, i wonder why i get this error could not find or load abc. Basically i am using command prompt to run the java file. The command is like this: java -cp weka.jar abc then i have that error show above. | |
Hi, Is there anyone know about window sliding protocol with selective repeat? currently i am doing an assignment based on this and i am a little bit confused how to implement the timers in term of the start timer and acknowledgement timer. | |
Hi, Anyone know what is the math for manhattan distance vs travelling distance? and which one is faster? thanks. Regards, Anthony | |
Hi, I know matrix 2d can be written like array[5][5] which saying 5x5 matrix but how do i make the row is like sequence of alphabets so its like array[a...z][5] while the column still numbers. Thanks. | |
Hi, i want to write an algorithm to list out possible paths in subway train maps from one station to another station (A to G). I am planning to use the breadth first search. Is it good? Thanks. | |
Hi, how to get the name of directory and subdirectory in a folder? example abc1/banana/(text files)? i have some codes buts its not given me the name [CODE] File dir = new File("abc1"); File[] folder = dir.listFiles(); [/CODE] i want to get the subfolder in abc1 called "banana". thanks for … | |
Hi, currently i created a lucene project and currently having a problem with the codes. Here are my codes (which i also refer to some useful websites explain lucene) [CODE] import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.search.IndexSearcher; import org.apache.lucene.search.Query; import org.apache.lucene.queryParser.ParseException; import org.apache.lucene.queryParser.QueryParser; import org.apache.lucene.search.Hits; import org.apache.lucene.index.*; … | |
Hi all, How do i store matching substring and string inside one single arraylist? example: [[er, every, errant]] which saying er substring is inside string every and errant.how should i make the comparison? basically what i did is only make 2 arraylist a1 = new ArrayList(); a2 = new ArrayList(); … | |
Hi, Currently i have an array list listing some bigram. and i would like to have the array list to be formatted like this [am] - [amazing, amber] and so on [bi] - [big, bigas] and so on how should i go about it?thanks for the suggestions. Thanks much | |
hi guys, i am trying to store a bigrams into a dictionary. but i am not sure what is the best way to do it?should i use hash table to store it?if yes, how to know whether the word for example am belong to amazing and maybe other words. thanks | |
Hi guys, i am trying to implement elevator simulation but stuck in some ways. 1st. i would like to set the background of my elevator class area into yellow but when i tried to do so by typing app.setBackground(COLOR.YELLOW) under class Elevator, i unable to change it. 2nd. i tried … |
The End.