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...
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...
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.
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...
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...
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[]...
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...
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...
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...
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...
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!
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?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.