Please tell me if I can use BitSet this way ;
Please set me right if I'm asking this question in the wrong forum. I am trying to write an object that contains values in a BitSet into a file using ObjectOutputStream. I loose the values upon reading the object back from the file using ObjectInputStream. What am I doing wrong? Am I way off even trying to do this?
thanks
Yes you can use it that way... maybe you could post your code as there may be another problem. The following code produces the correct result:
public static void main( String[] args ) throws Exception {
File f = new File( "c:/bitset" );
ObjectOutputStream out = new ObjectOutputStream( new FileOutputStream( f ) );
BitSet set = new BitSet(3);
set.set(0);
set.set(2);
System.out.println( set );
out.writeObject(set);
out.close();
ObjectInputStream in = new ObjectInputStream( new FileInputStream(f) );
BitSet set2 = (BitSet)in.readObject();
System.out.println( set2 );
in.close();
}
Similar Messages
-
hi! i buy iphone 5c on cricket but after 2 months in usa philadelphia but after 2 months i will go to uae, can someboydy please tell me if i can use my iphone5c there?
ask the carrier what they unlocking rules are
if they don't sim unlock it
it will not work with sim cards from other carriers
so if it would work in uae it would be roaming and still be using cricket as carrier and you could be charged an arm and a leg for both data and talking -
We have been having some issues with Email Notifications not going out and getting hung up in SOST. Can anyone please tell me whether we can use SAP Solution Manager to monitor outbound email?
What version of Solman are you using ? Check in t-code Rz20 >ccms monitor template of satelliate system , there would be option to monitor your outbound mails .You can sutomise your monitorig metrics in solman 7.1 else in 7.01 you use auto reaction methods to monitor .
Regards
Jay -
Can someone please please tell me if I can use something like this on iweb?
I want to create an entry page like this:
http://charlizetheron.com/
that uses flash for my son's website for his website. Is this possibble as an add on to iweb or can I use flash in iweb??? I can not figure this out!
Thanks to anyone that can help me!!!Yes you can use it that way... maybe you could post your code as there may be another problem. The following code produces the correct result:
public static void main( String[] args ) throws Exception {
File f = new File( "c:/bitset" );
ObjectOutputStream out = new ObjectOutputStream( new FileOutputStream( f ) );
BitSet set = new BitSet(3);
set.set(0);
set.set(2);
System.out.println( set );
out.writeObject(set);
out.close();
ObjectInputStream in = new ObjectInputStream( new FileInputStream(f) );
BitSet set2 = (BitSet)in.readObject();
System.out.println( set2 );
in.close();
} -
To whom it may concern:
I was charging my IPod and I received a message to update it. Now I can't shut down or turn of my Ipod. It has the ITunes Icon and the adapter plug on it. It states I need to restore my IPod, but I could possibly lose all of my data. I have spent a lot of time and money on itunes and games. I really don't feel like going throught this again. I was having problems in December with "The Tribez" game.
Could someone please tell me what to do to restart my IPod without losing all of my data.
Thank you,
Frances D. HoodTry:
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order. -
Those are the details. I'm using a Mac. Please help, this is annoying. Thanks.
Make sure that you do not run Firefox in permanent Private Browsing mode.
*https://support.mozilla.org/kb/Private+Browsing
To see all History and Cookie settings, choose:
*Firefox > Preferences > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
*Deselect: [ ] "Always use private browsing mode"
The arrow to open the tab history of the Back and Forward buttons has been removed in Firefox 4 and later.
Use one of these methods to open the tab history list:
* Right click on the Back or Forward button
* Hold down the left mouse button on the enabled Back or Forward button until the list opens -
Again, I am trying to sync all my desktop data over to my laptop. However, using Firefox v6.0.2 on both, I cannot find the "Add a Device" anywhere in the sync process windows. Can someone please tell me where I can find it???
Do you already have created a Sync account?
You need to create a sync account one one computer (click Create ...) and click the Connect button on the other computer.
*Firefox/Tools > Set Up Sync
* https://support.mozilla.com/kb/How+to+sync+Firefox+settings+between+computers
* https://support.mozilla.com/kb/where-can-i-find-my-firefox-sync-key
* https://support.mozilla.com/kb/find-code-to-add-device-to-firefox-sync -
hi all,,,, I am using apple ipod classic 80 GB... can anyone please tell me why i can't see my device on itunes once i connect it to my pc through usb cable???
Hey wajahat86!
Here is an article that describes this issue and can help you resolve it:
iPod not recognized in My Computer and in iTunes for Windows
http://support.apple.com/kb/ts1369
Take care, and thanks for visiting the Apple Support Communities.
Cheers,
Braden -
I'm trying to use Outlook to receive and send email from my mail.me.com account - can someone please tell me the settings to use (port number, encryption etc) as I can receive but not send. Thanks!
Looks like there is a general problem with SMTP mail today. Lots of people posting similar things.
-
Can anyone PLEASE tell me if I can download itunes to my Toshiba Thrive & if so what version to use?
iTunes is available for Microsoft Windows and Mac OS X - nothing else, including Android.
The version of iTunes pre-installed on an iPad is a store-front for the iTunes Store, and cannot be installed on anything else. -
I have an iBook g4 14" 1.42 ghz. I recently installed a new hard drive. I put the install CD in. Then, I pressed the power button, then the "C" key. Black screen and No chiming. Please tell me, what I can do to resolve this? What is the problem with it?
Since it will not boot then a hardware test can't be run. You could try FireWire Target Disk Mode and if it works then access from another Mac to run tests on the new drive. You could also try installing the OS X software from the host computer. If this does not work then professional help should be considered.
http://support.apple.com/kb/ht1661
http://osxdaily.com/2010/04/07/how-to-boot-a-mac-in-target-disk-mode/
http://www.macobserver.com/tmo/answers/how-to-use-target-disk-mode-to-boot-from- another-macs-hard-drive -
My iPod shuffle periodically skips across multiple songs...playing a song or two in full and then jumping forward or back multiple songs after playing only moments of a song. Please tell me what I can do to fix this situation. Thank you very much.
This is in regards to a 4th gen 40gb clickwheel ipod.
Hi, i've also been having a very similar problem with my ipod as well. I find that regardless of which windows-based pc i use (either my xp laptop @ home, or my win2000 desktop @ work) windows and itunes refuses to recognise my ipod. In windows explorer it will show it as a removable drive, but if i click on it, windows freezes. If I try to disconnect it, I cant because windows keeps reporting that 'the device is being used, try disconnecting later' and so then i shut down my laptop to disconnect it safely.
Lately, like you, i've also noticed that clicking sound it makes. It happens when i connect my ipod to my computer - like the drive inside it is constantly restarting or something, and i get it when i'm playing / charging it in my dock. I've also noticed that when it's playing whilst charging, it just freezes on a song, then skips a couple of songs.
I've just discovered the disgnostic tools on my ipod, so i think i'll run a couple of tests (ie HDD scan) and depending on the outcome, i'll go visit the apple store. -
Could you please tell what is encryption mechanism used in Release Management for storing any password
Hi y e ll e sh,
I am trying to involve someone to further look at your question. There might be some time delay. You can also check replies for the similar question in this
thread. Appreciate your patience and thanks for your understanding.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Please tell me - there absolutely MUST be an easier way to 'duplicate' a page! A simple ⌘D use to work in my older version - HELP :'(
Sorry, but no. Pages 4 is still in an iWork folder within your Applications folder. You can use that to get work done.
Please also let Apple know at:
http://www.apple.com/feedback/pages.html -
Hi, could you please tell me if I can install any SAP trial version for MAC OS?
Hi, could you please tell me if I can install any SAP trial version for MAC OS? I am newer on this
Hello Cielo,
You can install or use SAP free trial using VM machine
Windows for Mac Desktop Virtualization - Try Fusion Free: VMware Fusion | VMware India
And you can download prepacked /pre installed sap machine from SDN
http://sdnweb.sdn.sap.com/sapbackoffice/public/SAPStoreSolutions.aspx
I am using SAP application server using VM machine->Fusion6 and prepacked trial version.
Thanks !
With regards,
Amit
Maybe you are looking for
-
Where can I buy and external hard drive for my MacBook Pro?
anybody out there?
-
Sharing internet with Macbook from an XP machine?
I know on OS X that I can easily turn on internet connection sharing, and take my XP laptop and connect to that Wifi network, but can anyone tell me how to do this the other way around? In other words, how do I configure XP to share a connection with
-
Change paper size when printing
How to change paper size when printing pdf? No option for paper size appear.
-
Application blocked by security settings
I try to run web based camera interface but it keeps saying that it's blocked by Java security despite I added its IP to exception site list (error attached) What can i do about it?
-
Backing up actions - Not working after re-install.
I recently had hard drive issues that led to PC issues so I decided to do a full re-install of Windows 8.1 and all my programs. After installing Ps CS6 64-bit, when I loaded my backed up actions into Ps, some of my actions would not work. Giving me