Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Elle
  • Order by date
  1. Elle

    OleMainThreadWndName error

    Hi, One of my NT 4 with latest updates workstations at log off produces the wait while task is closing window, with the options to wait 20s, end task, close now. The title of the window is "OleMainThreadWndName". It only lets me log off when i select end now. Does any one have any...
  2. Elle

    Local GPO Settings

    Ace thankyou very very very much. Cheers, Elle
  3. Elle

    Local GPO Settings

    Hi Guys, I so hope that someone can help me. I'm in a bit of trouble with my win 2k pc. I am investigating the local group policy option that is part of the mmc. I noticed that there was an option to "Run only allowed windows applications" So i followed the instructions, opened up...
  4. Elle

    need a binary alogrithm search

    Have a look at this site, http://www.glenmccl.com/perfj_011.htm
  5. Elle

    HashMaps

    If i do that it sets the myrecord.id to be 1 everytime. It also gives me an error... java.lang.NullPointerException at Test.main(Test.java:77) Exception in thread "main"  I'm sorry to be a pain but i'm so close to getting it working.
  6. Elle

    HashMaps

    Thankyou!! It only seems to be getting values from the last entry to the hashmap. It doesn't matter which record id i ask for it only give me values for the last one read in. I don't really want to post all my code again as this post is massive as it is. So the only bit that has changed is...
  7. Elle

    HashMaps

    Ok magic thanks guys. One more question how would i then get the information out of the hashMap so i can compare it to other records. I know if i do Object Recordx = RecordMap.get("1"); It will return the myrecord values stored in recordid = 1 but how do i then get out for example...
  8. Elle

    HashMaps

    Hi, Cheers i did as instructed but it seems to be giving me an error mesage when i run the code. java.lang.NullPointerException at Test.main(Test.java:74) Exception in thread "main"  Any ideas where i've gone wrong? ... public class Test { public static void main(String[]...
  9. Elle

    HashMaps

    Ok, thanks guys. Sean with your code how would i send it my values?
  10. Elle

    HashMaps

    Hi, I have anothe hashmap question. Can you store more than one value for each key? For example use recordid as the key and store values pagesprinted, username, printername. As one entry? I tried the normal way of RecordMap.put = (recordid, pagesprinted, username, printername); But it...
  11. Elle

    Array with mixed types??

    Cheers, I followed your instructions. But when i go to compile and run i get an error msg... java.lang.NoSuchMethodError: main Exception in thread "main" My main class was static as well but it produce another message cause my new class wasn't anymore could this by related? Not...
  12. Elle

    Array with mixed types??

    Cheers for the suggestion Artemyy, But i've done that. I made a special class for myrecords... public static class PrintingRecord { public int id =0; public String date; public String username; public String printer...
  13. Elle

    Array with mixed types??

    Hi Guys, I'm trying to read in a file, use a string tokenizer and then store the useful tokens into an array. I'm reading my file in line by line as i later need to compare the values on one line with the values on another line. So i'm trying to store each line as a new row within my array...
  14. Elle

    Parse whole file with StringTokenizer

    Brilliant thankyou very much. I put the alteration in first and still nothing. So i then added in the flush and low and behold all the tokens came flowing out!
  15. Elle

    Parse whole file with StringTokenizer

    I don't flush the stream but i close it. My code is posted in the very first message of this post, it's still the same apart from slight alterations. I close the output filewriter after i've finished doing all the stuff to it. Should i be flushing it?
  16. Elle

    Parse whole file with StringTokenizer

    Ok Cheers that worked. But now it's not outputting any of the tokens to the output file. It doesn't seem to be getting into the now second while loop (//while there are still tokens to read). I tested it by making it output something to the file once it enters the loop but the file remained...
  17. Elle

    Parse whole file with StringTokenizer

    Hi Guys, How do i get my program to read in more than the first line of the file. So far it reads in all of the lines from the input file one by one and then it is meant to parse it and output all the tokens to a txt file. But at the moment it only outputs the first line. I tried putting...
  18. Elle

    HashMaps

    Ok cool, I think i should be able to get moving. Thanks for your help!
  19. Elle

    HashMaps

    Ok ta, sorry this is probably a really stupid question but i've managed to completely confuse myself. if i did say hm.put("username","7"); What does the 7 mean? Which value? The index in the map similar to an array? Or the value of the token from my stringTokenizer? So it...
  20. Elle

    HashMaps

    Hi Guys, I'm looking for some information on HashMaps. I have searched the net but i can't find anything easy to understand or any examples of how to use them. Does anyone have any suggestions? My program reads in from a text file, information about which user used the printer, how many pages...

Part and Inventory Search

Back
Top