Few general questions and j2sdk 5 questions

Hello guys
I hope the new java development kit have some way to deal with scanner's TWAIN. Does it?
What is the new Each-for loop used for?
I googled the internet and not find any site that provides me with final reports to Seniors presented by Computer Science Students, is there any?
With Regards
M. Tleis

I hope the new java development kit have some way to
deal with scanner's TWAIN. Does it?No. TWAIN is a Windows only standard, hence standard Java can't support it. There are third party libraries (such as Morena - http://www.gnome.sk/Twain/jtp.html) you can use to interface with TWAIN though.
What is the new Each-for loop used for?Foreach loops are a syntactic sugar that simplify looping over collections. In Java before version 5, you might have written code like this:
List things = new ArrayList();
things.add("abc");
things.add("def");
things.add("123");
for (Iterator i = things.iterator(); it.hasNext();)
  String thing = (String)it.next();
  System.out.println(thing.charAt(0));
}Java 5.0 lets you do the following:
List<String> things = new ArrayList<String>();
things.add("abc");
things.add("def");
things.add("123");
for (String thing: things)
  System.out.println(thing.charAt(0));
}

Similar Messages

  • A few general questions relating to H55-GD65 and core i5 750 Lynnfield

    I finally made the jump from AMD to intel, and DDR3 ram, been reading the forums for around 3hours, been a member for 2hrs. Been building systems since Redhat 9.0 came out, so Don't expect any thing as funny as Quote
    because I want to know the temperature of the IOH without the heatsink.
    Would it be better to run 2gig X 4 = 8gigs of RAM, or 4gigs X4 = 16 gigs?
    Concerning dual channel mode, must I buy them in matched sets, or can I buy one stick at a time, obviously buying the same exact kind each time?
    To run DDR3 1600mhz on this board will I need to set the voltage/timings manually, or will it auto detect?
    From what I've read the pcie controller is on die, and with the i5's you can only run 1@ X16 or dual X8, am I correct?
    If I get a pcie x8 sas raid controller card, will it affect graphics performance?
    Also this will be my first attempt at dual booting sata hard drives.
    Would it be difficult to have win7 x64 on the mobo's onboard sata, and linux (either Mandriva, Open Suse, or gentoo if my insomnia is still acting up)
    on the sas card?
    Edit: Almost forgot, has any one else had issues with the onboard NIC dropping connection? It never happens when It is in use, only when i walk away from it, as an example Wow's latest 4gig patch had 900megs to go on a 1.1megabyte connection, upon going to sleep and locking the computer windows key-L, woke up with it having 500megs remaining and as soon as i opened my browser my connection picked right back up

    Hello and welcome,
    Quote
    Would it be better to run 2gig X 4 = 8gigs of RAM, or 4gigs X4 = 16 gigs?
    Concerning dual channel mode, must I buy them in matched sets, or can I buy one stick at a time, obviously buying the same exact kind each time?
    To run DDR3 1600mhz on this board will I need to set the voltage/timings manually, or will it auto detect?
    Its better to use 2x4GB, to lessen the strain on the memorycontroller and yes, you'll have to set it to 1600MHz yourself most of the time.
    The memorycontroller is rated for 1066/1333MHz, so anything beyond is considered overclocking and thus the controller will not set those higher timings automatically.
    Do you really need 8GB? For office, internet and gaming, normal homeusage, 4GB is more then enough, 8GB is nice if you render a lot or if you use cad/cam and photoshop stuff
    Quote
    From what I've read the pcie controller is on die, and with the i5's you can only run 1@ X16 or dual X8, am I correct?
    If I get a pcie x8 sas raid controller card, will it affect graphics performance?
    Yes it runs @x8 when running 2 vga's, or in your case if you use a PCIe x8 card, but the impact is none, even the GTX480 and the HD5970 are not capped when @x8, so no worries there.
    Quote
    Would it be difficult to have win7 x64 on the mobo's onboard sata, and linux (either Mandriva, Open Suse, or gentoo if my insomnia is still acting up)
    on the sas card?
    I have had dual and even triple boot since XP and never had any issues, be sure to write the different os to different hd's or partitions. About Linux on a sascard, no idea, Im not familiar with that.
    Quote
    Edit: Almost forgot, has any one else had issues with the onboard NIC dropping connection? It never happens when It is in use, only when i walk away from it, as an example Wow's latest 4gig patch had 900megs to go on a 1.1megabyte connection, upon going to sleep and locking the computer windows key-L, woke up with it having 500megs remaining and as soon as i opened my browser my connection picked right back up
    Check your windows powersavings settings, maybe it turns it off when in standby/sleep mode.
    If you cant find anything there check bios, to make sure onboard NIC is always on, although I believe  you must find such a setting in windows.

  • A few general questions

    Hi there everyone  
    I have a few questions i need a bit of help on
    1. I came to the realization yesterday that my cpu was not running at the correct speed, since i am a little slow at times. It is a Athlon 2000+ 1.6 Ghz, but the cpu was running at 1.2, so I pushed up the fsb from 100 to 133...Now my temps are running 5-8c higher (idle 44-47c and to 49-53c at load playing Neverwinter Nights).
    Is that normal?
    2. I bought some extra fans to see if this cools the case better. I have now 2 in front (intake) , one in back (out), and one on the left side vent...Question is on that vent is it better to put that one as intake or outake? It is directly horizontal to my CPU (where I have a volcano 9 cpu cooler).
    3. How often is it good to run the cooler xp on PC Alert? I was thinking I could run that quite often, especially when playing games cause it cuts the temp down to 28-30c!! Would that put too much stress on your fans? How often can I run that?
    4. I have the kt4-ultra 6590, I installed the IDE3 drive as a 13 gig IBM deskstar, I have read up a lot on RAID, but I do not know what I do with this drive....None of the faqs really tell you, except a lot of technical jargon. My question is thus: May I use this drive to install applications and games? Or should it be left empty or for backup or performance write booster? I have two 40 gig seagates as primary and slave on IDE1 so i am not really hurting for space i was just wanting to know if this thing can be useful.
    My Thanks to anyone who can answer these questions for me      

    Well, Allied PSU's were once considered to fairly good for most systems. These days, they really lack the power output needed by modern systems.
    3.3v 24a +5v 35a +12v 0.8a Also, the 3.3V looks to be a little low, at 24A, and this could be the reason for the alarm by PC Alert. Gaming with a modern system will show any weakness in the PSU. You probably never had this happen before, due to the CPU drawing a little less power while running @100FSB.
    Keep an eye on this, and if it continues, a new PSU should be considered, but remember that "400W" means very little when it comes to most PSU's. High amp ratings are what matter. Most people here agree that Antec and Enermax PSU's are among the best brands.

  • A few general questions about sequences, framerates (fps), audio sources

    If I create a sequence in Pro that is 23.976fps, matching my audo from Canon T2i shot with 24fps... and an audio with 48hz... and then if I import an audio (music) with 44hz..
    does it affect my output settings?
    Another question. If i have 23.976fps sequence, and I output it for Vimeo (which they say should be 30fps) does it have ANY effect on video/audio synchronzation?

    PrPro can handle most common Audio Sample Rates, like 44.1KHz @ 16-bit, and will Conform those Assets to edit in a 48KHz 16-bit Project. Other than an extra moment of the Conforming process, should not be an issue. This ARTICLE will give you some background on Conforming and Indexing.
    Good luck,
    Hunt

  • A few general questions from a greenhorn

    Hello there,
    I have a project coming up that will require the ability to
    record live audio conversations. It sounds like I need FMS to
    accomplish this, but which version? I'm hoping we can get by with
    the $1500 version as this is the only functionality of FMS that I
    will be utlilzing.
    Nowthen, on to my extreme-newb questions:
    If we are currently running the site with a php/mysql
    backend, will FMS have the ability to just "ride on top" of what we
    already have going so that we can use the audio recorcing
    functionality without having to re-design our entire back-end? Will
    it have access to our pre-existing session variables?
    What are the pros and cons of licensing FMS vs purchasing
    hosting with FMS enabled?
    If a miracle occurs and I get my app working on a dev edition
    of FMS, would I be looking at any headaches for porting it over to
    an FMS host? (as far as configuration and other factors)
    Thank you very much for any help, it is much
    appreciated.

    "If we are currently running the site with a php/mysql
    backend, will FMS have the ability to just "ride on top" of what we
    already have going so that we can use the audio recorcing
    functionality without having to re-design our entire back-end?
    - Yes this is a drop in solution for you. Your flash audio
    recorder (embeded in your php application) will just communicate
    with the flash server. No retooling of your php is needed.
    "Will it have access to our pre-existing session variables?"
    - Since the recorder would be embeded in your php application
    I dont think you would need to pass session variables into it but
    it is possible.
    "What are the pros and cons of licensing FMS vs purchasing
    hosting with FMS enabled?"
    - Hosted solutions have a recurring cost compared to
    licensing and running it yourself.
    "If a miracle occurs and I get my app working on a dev
    edition of FMS, would I be looking at any headaches for porting it
    over to an FMS host? (as far as configuration and other factors)"
    - There should be no headaches since your app is simple. The
    main factor I would see is just storage limits on a hosted server.
    Hope this helps.

  • A few General Questions about Layouts

    Hey.
    I'm pretty new to Swing so I don't know much. My first question is do you have to use a Layout Manager to organize components on a JPanel? Is there no pixel way to do it? Secondly, for layouts, specifically for GridBagLayouts, is there any way to display the grid for developing purposes?
    Thanks in advance.

    I'm sorry but the above code did not work. Even though I added the components, they still did not show. Anything I missed? Thanks.
    My code is below:
    import javax.swing.*;
    public class SwingTest {
        public static void main(String[] args) {
            // Create application frame.
            JFrame frame = new JFrame();
            frame.setSize(500,500);
            JPanel foo = new JPanel(null);
         This 1 arugment constructor takes the layout manager as the argument.
         You can alternatively do this:
         JPanel foo = new JPanel();
         foo.setLayout(null);
         JLabel label1 = new JLabel("Label 1");
         label1.setLocation(10, 10);
         JLabel label2 = new JLabel("Label 2");
         label2.setLocation(10, 50);
         foo.add(label1);
         foo.add(label2);
         frame.add(foo);
            // Show frame.
            frame.setVisible(true);
    }

  • Few general questions

    I was just wondering I downlaoded the mac version of msn and ClamxAv and both are on my desktop is there anyway to remove them from the desktop? also if anyone knows if it is possible to get photos off my ipod and put them onto my macbook thanx

    I used to wonder about that myself, but when i use my ipod in disk mode its not possible to get the photos synced onto it through itunes. the only way to get anything in and out of the ipod is both through disk mode, and having the files saved to the ipod straight onto the drive as you would an external hard drive, not loaded through the itunes interface.

  • A few general questions about the different iPod Touch models

    What is the difference between the 2nd Generation and the 3rd Generation iPod Touch?
    How often do they release a new generation model?
    Does anyone know yet how the 4th Generation model will compare to the 3rd and 2nd Generation models?
    Thank you.

    What is the difference between the 2nd Generation and the 3rd Generation iPod Touch?
    See:
    http://en.wikipedia.org/wiki/Ipod_touch#Models
    As to when a new model might be released and what it might feature, no one here knows or can say. We'll all just have to wait and see. As Sandra indicated, you can read the various rumor sites, but as to what rumors if any you can believe, your guess will be as good as ours.
    Regards.
    Message was edited by: Dave Sawyer

  • SAP CM25 which profile to use and why and some general questions

    Hi there,
    I have a few general questions, if you may share your thoughts on this.
    In a manufacturing environment, is CM25 more used to finite schedule the work centers or labor or both ?
    Is it a good idea to even finite schedule the planned orders or just production orders ? We want to create production orders 1 week ahead of the production schedule and planned orders gets created 3-4 weeks earlier than production order gets created.
    The graphical tool seems to be slow sometimes when dispatching and doing some actions on the screen, has any one have any say on this. Should we need to have better computers on the floor for this to work ?
    I have been trying my solutions using CM25 and not CM21 or CM27 using the profile SAPSFCG005, is there any other profile that I need to consider and other transactions to consider like CM21 or CM27 for certain purposes?
    Thank you

    Hello
    In a manufacturing environment, is CM25 more used to finite schedule the work centers or labor or both ?
    It can be used for both depend upon bottle neck resource whether machine or labour.
    Is it a good idea to even finite schedule the planned orders or just production orders ? We want to create production orders 1 week ahead of the production schedule and planned orders gets created 3-4 weeks earlier than production order gets created.
    Better it should be finite planning for planned order also you can use MRP with lead time scheduling.
    The graphical tool seems to be slow sometimes when dispatching and doing some actions on the screen, has any one have any say on this. Should we need to have better computers on the floor for this to work ?
    It depends upon the data load and selection,
    Restrict the number of objects to be displayed, for example, select only a small number of work-centers/orders.
    Customize the time profile (transaction OPD2) such that the database read period, the planning period and the evaluation period are as small as possible. As a result, fewer objects are read and displayed.
    Refer KBA  2038780 - Tips for performance improvement on Capacity Leveling
    If you want to process more orders, check whether a batch planning (planning in the background on transaction CM40) is possible.
    I have been trying my solutions using CM25 and not CM21 or CM27 using the profile SAPSFCG005, is there any other profile that I need to consider and other transactions to consider like CM21 or CM27 for certain purposes?
    It depends upon your requirements which transaction to use and which profile. You can customize your own profile also.
    Best Regards,
    R.Brahmankar

  • Business Objects Training -General Questions

    Hi,
      I am just Going through the Business Objects...had some few general questions.
    1)What  is the current Version on BO
    2)Where does Crystal reports & Xcelsius fit in Business Objects
    3)Does Power Center & Informatica are also included in Business Objects
    Thanks

    The latest version of Business Objects Enterprise is XI Release 3.1 Service Pack 2. There have been several fixpacks delivered on top of this as well.
    Crystal Reports and XCelsius are tools to build Reports and Dashboards respectively. While XCelsius is suited for creating sleek dashboards with very aggregated data - usually less than 2000 rows per report, Crystal Reports can be used for reporting off data warehouses requiring reporting off large data sets.
    Informatica Powercenter is a tool proivded by an independant vendor and is not a Business Objects Product. Business Objects Provides Data Integrator, which is pretty much as rugged as Informatica and provides all the functionalities of ETL(Extraction Transformation and Loading).

  • General Questiona

    HI All,
    I have few general questions, Please help me to underatand
    1. What is good money /5py
    2. what is /5U1 Tot ER tax how will it get generated.
    Pls give me an example.
    Thanks
    Veer

    Veer,
    Good money (Wage Type /5PY) is the excess of current period earnings over any offsets from inflows. Itu2019s calculated during a retro when a claim is present. For instance:
    During pay period 01.2010, an employee leaves the company and owes 5,000. The employee does not get paid because more is owed than is payable.
    During pay period 05.2010, the employee is rehired at a salary of 6,000. When the payroll is run, the system will retro to pay period 01.2010 and record 1,000 u201CGood moneyu201D in wage type /5PY in pay period 05.2010. The calculation is:
    + 6,000 Salary
    -  5,000 Claim
    Regards,
    Howard

  • General Question on Proxies

    Hi,
    I have few general questions....
    How to decide which proxy to be used: Java or ABAP?
    What are the deciding factors?
    Which one is better when it comes to performance?
    Regards,
    Rajani Kumar

    bump

  • Camileo charging problem (solved) and a general question!

    Hi all!
    First of all, I was going to ask for help as to why the Camileo S10 was not charging (the orange light wasn't flashing), and I'd seen a few people with similar problems.
    The solution?
    Give the contacts on the battery a clean.
    The insulation sticker that comes on it must leave some kind of residue on it, and it's enough to prevent charging. Now it's flashing away happily :]
    So my general question was, is it possible/advisable to use the camera on the mains?
    Rather than constantly draining and charging the battery during long shoots, I'd prefer to just leave it plugged in!
    Thanks very much in advance!
    Paul

    Hi
    I think the battery handling is always the same no matter what product it is
    From time to time the battery should be recalibrated.
    This means that the battery should be discharged fully and after then you should charge it again until the battery would reach 100%
    I do this with all my batteries; mobile phone battery, digi cam battery and notebook battery.

  • Report Builder Question - OA AR Aging - and a general question

    I'm sure this is the wrong forum for this question, but I thought there might be someone here who might be using Oracle Applications and Report Builder who'd be kind enough to help me out.
    We've recently implemented Oracle Applications 11.5.10 and I have to use report builder to change the Accounts Receiveable Aging (7 bucket) to a 5 bucket report. I've already made some changes to the seeded "ARXAGMW.rdf" report, but I'm not a big Oracle Reports guy. I've stumbled through making some changes in various other reports. But this one is just plain nasty! :)
    I was thinking that I could simply add buckets 6 & 7 to bucket 5, then just hide or delete the 6 & 7 buckets. But I'm not sure where to even start. Any help with this would GUARANTEE a Christmas or other holiday card this year! :)
    I really want to keep this simple as possible, so any help would be very....helpful. :)
    Oh, my general question is: Are there any resouces/books for Oracle Reports (Report Builder)? I feel so lost trying to modify existing reports, let alone creating new ones.
    Thanks again!
    Steve

    Hi Steve,
    I am working on the 7-bucket aging report and i want to add a new field in data model.
    As the query is build dynamically, i have modified the function BUILD_CUSTOMER_SELECT to meet my requirements.
    But the problem is that in the data model, the field is not present in my Grouping. and if I try to add the field in the Data Model query (Q_ Customer) section,
    i get the following error: ORA-01789: query block has incorrect number of result columns.
    The query is as shown below:
    select rpad('a',50,'-') short_cust_name,
    0 cust_id,
    rpad('a',30,'-') cust_no,
    rpad('a',500,'-') sort_field1,
    rpad('a',40,'-') sort_field2,
    0 payment_sched_id,
    rpad('a',32,'-') class,
    sysdate due_date,
    0 amt_due_remaining,
    0 days_past_due ,
    0 amount_adjusted,
    0 amount_applied,
    0 amount_credited,
    sysdate gl_date,
    'x' data_converted,
    0 ps_exchange_rate,
    0 b0,
    0 b1,
    0 b2,
    0 b3,
    0 b4,
    0 b5,
    0 b6,
    rpad('a',25,'-') bal_segment_value,
    rpad('a',500,'-') inv_tid,
    rpad('a',32,'-') invoice_type
    , 'y' parent_cust --I WANT A NEW FIELD HERE TO BE VIEWED ON THE REPORT LAYOUT LATER
    from dual
    where 1=2
    UNION ALL
    &common_query_cus
    Did i missed somthing 4 me to be able to add the field here?

  • General question about iTunes Match and multiple libraries

    Hello to everyone,
    I have a general question about the iTunes Match service, which is available since yesterday in my country (Italy). Currently my library situation is the following:
    Computer A (desktop, Windows 7): "big" iTunes library (about 20 GB), at the moment not associated with my Apple ID
    Computer B (MacBook Air 2011): "small" iTunes library (about 5 GB), associated with my Apple ID
    At the moment, both my iOS devices (iPhone 4 and iPad 2) are synchronized with the smaller library on the MacBook Air.
    Question is as follows: should I subscribe to iTunes Match, would it be possible to upload the "big" library (provided I associate it with my Apple ID) to iCloud while keeping my devices synchronized with the "small" one?
    Ideally, at the end of the day, the situation should be the following: both iOS devices with music from the small library + possibility of downloading songs from iCloud (coming from the big one). Is this possible?
    Maybe the question sounds stupid, but I want to be sure about this before paying for the service.
    Thanks a lot.

    Yes, you could also associate your larger library with iTunes match if you associated your Apple ID with it. However any purchases in the library made from another Apple ID will not be matched with iTunes much.
    If both libraries are part of iTunes match, then all your devices will see all of the content from both libraries, which content you choose to have on those devices and which you have accessible via iTunes match is entirely up to you.

Maybe you are looking for

  • Problem With Photoshop CS4 ME On windows 7

    Hello, I Installed Photoshop CS4 ME On windows 7 but every i open photoshop, it gives me a error with this message: I have HP DV5 1299ee (NVIDIA GeForce 9600M GT) I downloaded the newer version of my VGA Driver and installed it(version 186.81) but it

  • Business Place for document  could not be determined

    Hi, When I am posting Remittance challan I am getting this following error, "Business Place for document  could not be determined". Could any body please help me to solve this problem. I maintained the following settings in system 1. T-Code: J_1IEWTN

  • Adobe Assets: PSD export to image(PNG, JPG) crashes webpage

    Firstly it is great that Adobe Assets was released so that it would be possible to view PSD files. Have a PSD file opened in Adobe Assets on Google Chrome(Linux). I am trying to use the option of exporting the PSD to an image format, but the Actions

  • Check existence of BP/IO

    Hi all, As we got only data records without activity key (or some similar flag for change/update) we I need to create an interface to check if a business partner/ insurance object is already existent or not. The only input we have is the external BP

  • Access gate SDK, authentication and issues/bug

    I have been trying to test authentication against CORE ID using the access gate SDK for java and following the samples that installed with the SDK. I simulate user account lock-out and pwd to expire ( in two days) situations. Doing the form based acc