« first day (871 days earlier)      last day (2604 days later) » 

2:19 AM
@codeMagic Got a moment?
 
2:47 AM
@Joe'sMorgue possibly. What's up?
 
I'm trying to help my son with his homework in Java
I need assistance
public class VocabularyBuilder {
	public String[] buildVocabulary( String fileName, int count) throws IOException {

		String[] vocab = new String[count];
		Scanner scanner = null;
		try{
			scanner = new Scanner(new BufferedReader(new FileReader(fileName)));
			scanner.useDelimiter("[\\.\\?!\",:;]*\\s+\"?");
			HashSet<String> wordSet = new HashSet<String>();
			while(scanner.hasNext()){
				String word = scanner.next();
				wordSet.add(word.toLowerCase());
				Arrays.sort(vocab);
			}
		}
			finally{
	@Test
	public void testVocabulary() {
		List<String> vocab = builder.buildVocabulary("text.txt");
		assertTrue( vocab.size() == 256);
		assertTrue( vocab.get(0).equals("a"));
		assertTrue( vocab.get(255).equals("younger"));
	}

	@Test
	public void testNonexistentFile(){
		List<String> vocab = builder.buildVocabulary("fnord.snark");
		assertTrue( vocab == null);
	}
Sorry, I know it's long, but I'm tired.... :P
I'm letting my son take over for a little bit here...
 
I wouldn't mind helping, although it's late, but it is long, poorly formatted, and there seems to be no question
Chat formatting can be rough. A gist or pastebin is usually better
 
3:23 AM
well idk if you can really read it the way its formatted but i would just need to set up the top set of code so that the test case at the bottom would test true so i woud need to make the vocab size 256 and put the words in alphabetical order
 
 
2 hours later…
5:01 AM
posted on March 28, 2015

New Cyanide and Happiness Comic

 
5:29 AM
Hye any one can help me in Alert Dialog custom icon.!

I am using an Api and want alertDialog to seticon(from my Api image path).!
i tried but it shows my app icon instead of fetched image .! kindly help.!

u can reply with ur answer , i will check it .!
 
 
3 hours later…
 
5 hours later…
1:42 PM
anyone here?
 
mcd
anyone here ? ..Mike Testing 1 2 3 :-)
 
@mcd have you worked on collapsible searchview?
I am facing a bit trouble
in it
 
mcd
yup can you tell me what's problem did you face
 
i dont understand man, those r noobies sites -_-, i appreciate your work , but plz read question promptly.! i need dynamic seticon not form drawable
 
1:48 PM
I need the event of back ('<') pressed while searching
 
mcd
@NarendraDroidWorm hey means you need to close serach view when user press back button or actionbar up button???
 
yes
I mean I need the event when user closes the searchview
@mcd
 
mcd
searchItem.setOnActionExpandListener()
i never used it but i just found on api
 
okay...lemme check
 
mcd
see this sample code
 
2:09 PM
@mcd its working man...tnx :)
 
mcd
no problem enjoy
 
2:57 PM
@codeMagic @BenjaminGruenbaum anyone there?
@codeMagic how to fix my A:Q
?
 
Give more quality answers on SO and show more helpfulness in chat
Our rules page should explain it more room-15.github.io
 
okay, so helping in any chat room will work?
 
It will help but mostly Android and/or Java
But I can't guarantee what another owner will do. It's best to give some more quality answers on SO
 

« first day (871 days earlier)      last day (2604 days later) »