Printing array help please!

Hi, I have a problem with printing arrays in a certain order. Let me descbribe it, by the way I'm using Java version 1.3 if that helps.
ok, what I need to do is print out on a single line all the strings found on the command line that end in .java and then I need to print out all the strings found on the command line that end in .class. So say I type on the command line a.java b.class c.java d.class. Then it would print out a.java c.java b.class d.class.
any help would be appreciated!

here it goes the complete code:
* running example: java a.class b.java c.class d.class h.java
public class Nickal01
     static public void main(String[] args)
          String classes = "";
          for(int i=0; i<args.length; i++)
               if(args.endsWith(".class"))
                    classes += args[i] + " ";
               else
                    System.out.print(args[i]+" ");
          System.out.println(classes);

Similar Messages

  • I use Microsoft XP on my PC, where r my pictures from my iPad? I need to know how to send pictures to Walgreens, etc so I can get them printed. Help please!

    I use Microsoft XP on my PC, where r my pictures from my iPad? I need to know how to send pictures to Walgreens, etc so I can get them printed. Help please!

    I am legally blonde and not very tech savvy, so I don't really know how to do that.  I know ur time is valuable, so could u possibly give me a short tutorial?  I would b very grateful! I use the camera kit to get my pics from my sd card to my iPad and also from my iPhone to my iPad. Had I known I would have this problem, I would not have transferred my pics to my iPad until after I took the sd card and had my pics printed.

  • HP Photosmart Premium c309g-m does not have a mirror image print option-help please

    After twice being dropped from HP chat support I have laned in this forum to get some help please.
    I need to be able to print mirror images from my printer and it simply is not a option-it's not a matter of turning on the
    option, it is not there at all.
    Thanks
    Donna

    Check the iron-on packaging for ink specs.   Make sure to use HP iron-on paper.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Print settings help please!

    I recently upgraded to Photoshop CC and now when I print on my Z-3100 44" printer, the colors are all blown out. It looks like a nuclear bomb went off, vice a landscape scene. If anyone can point me to some print configurations help, I would appreciate it!
    Greg

    http://www.gballard.net/psd/cmstheory.html

  • I am unable to Print in Colour - Mac to HP Deskjet Ink Advantage 4615 printer ? help please

    I am unable to Print in colour - Mac to HP Deskjet Ink Advantage 4615, all the test pages print in colour but not anything else . Help Please

    Hello and welcome benjas96,
    I can appreciate your dilemma.  I would recommend contacting our technical support group to get this ironed out.  This is not to say it is not possible, however there are some basics that will need to be isolated and confirmed first.
    Please feel free to contact us and they will be glad to help.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Font array help, please

    Hello
    I am a beginner to Flash and I am wondering if I can create
    an array so that the fields in my online form are input with the
    same size text and font style (10pt Arial normal is fine).
    At the moment, font/size do appear slightly different when
    data is entered in the form, although the Properties panel tells me
    they are the same.
    Would I do it something like this:
    inputs=[name_txt,email_txt,business_txt,country_txt,message_txt];
    for( var elem in inputs) {
    inputs[elem].fontColor = #ffffff;
    inputs[elem].fontStyle = Arial;
    A the moment, the code I have (which is not wonderful) looks
    like this:
    var mainTL:MovieClip = this;
    //start off with submit button dimmed <--I don't actually
    use this
    submit_mc._alpha = 80;
    var dataSender:LoadVars = new LoadVars();
    var dataReceiver:LoadVars = new LoadVars();
    create listener to 'wake up' submit button <--I don't
    actually use this
    var formCheck:Object = new Object();
    formCheck.onKeyUp = function() {
    if (name_txt.text != '' &&
    email_txt.text != '' &&
    business_txt.text != '' &&
    country_txt.text != '' &&
    message_txt.text != '') {
    //clear any alert messages
    alert_txt.text = '';
    //enable the submit button
    submit_mc._alpha = 100;
    } else {
    //remain disabled until all fields have content
    submit_mc._alpha = 80;
    Key.addListener(formCheck);
    /*#######SET STYLES FOR TEXT FIELDS <--I don't actually
    use this#######*/
    //define styles for both normal and focussed
    //set hex values here that work with your site's colors
    var normal_border:Number = 0x000000;
    var focus_border:Number = 0x000000;
    var normal_background:Number = 0xffffff;
    var focus_background:Number = 0xffffff;
    var normal_color:Number = 0x000000;
    var focus_color:Number = 0x000000;
    inputs=[name_txt,email_txt,business_txt,country_txt,message_txt];
    for( var elem in inputs) {
    inputs[elem].border = true;
    inputs[elem].borderColor = normal_border;
    inputs[elem].background = true;
    inputs[elem].backgroundColor = normal_background;
    inputs[elem].textColor = normal_color;
    inputs[elem].onSetFocus = function() {
    this.borderColor = focus_border;
    this.backgroundColor = focus_background;
    this.textColor = focus_color;
    inputs[elem].onKillFocus = function() {
    this.borderColor = normal_border;
    this.backgroundColor = normal_background;
    this.textColor = normal_color;
    Selection.setFocus(name_txt);
    submit_mc.onRelease = function() {
    if (name_txt.text != '' &&
    email_txt.text != '' &&
    business_txt.text != '' &&
    country_txt.text != '' &&
    message_txt.text != '') {
    alert_txt.text='';
    mainTL.play();
    dataSender.name = name_txt.text;
    dataSender.email = email_txt.text;
    dataSender.business = business_txt.text;
    dataSender.country = country_txt.text;
    dataSender.message = message_txt.text;
    dataReceiver.onLoad = function() {
    if (this.response == "invalid") {
    mainTL.gotoAndStop(1);
    alert_txt.text = "Sorry, but your email address appears
    invalid"
    } else if (this.response == "passed") {
    mainTL.gotoAndStop(4);
    //send data to ASP
    dataSender.sendAndLoad("Email.asp", dataReceiver, "POST");
    } else {
    alert_txt.text = "Please complete all fields";
    Many thanks for any help.
    Steve

    I have done that it the Properites panel but when I click
    CTRL and Enter and complete the email form myself, I can see there
    is a difference in fonts in one of the fields - although the
    Properties panel tell me otherwise.
    I just though AS would force the issue.
    Steve

  • IPAD and UPdate to Airprint Printer question Help Please?

    I have an HP 6500 printer that I utilize with my MacbookPro (from 2007) and it operates just fine wirelessly using WiFi at home. I did note  though that my iPod cannot print to the printer as the printer IS NOT AIRPRINT equipped.
    MY QUESTION?
    I am considering purchasing an IPAD MINI (RETINA)equipped with KeyNote, Pages, etc., and am wondering If I invest in an AIRPRINT equipped printer in order to enable printing from the IPAD MINI, will I also still be able to print from my Macbook Pro (2007) which is not equipped with anything that interfaces with AIRPRINT to my new AIRPRINT printer? In other words, is this reversed engineered to allow printing from an older laptop to a brand new AIRPRINT printer?
    Hope you can help, so I don't waste money on a new printer and an IPAD only to find out I can no longer use my LapTop (MacbookPro) to print.
    Thanks you for any help.
    Charles

    Thanks, Jim.
    Going to give it a try, Now, after reading all the reviews on the various HP and Epson model all-in-one printers, my next chore will be to make the actual selection. It seems that there as many people who love each unit as there are who hate each unit. Confusing, but I will digest it over the next several days and make a choice.
    Thanks again,
    Charles

  • TCP/IP Printer ports - HELP PLEASE

    I have a large inkjet printer that I print my graphic design to... for years it has been set up and printing just fine through an Actiontec M1424-WR-rev.D router. No setting were ever changed in the router, it just worked great right out of the box (the Verizon guys installed it). I had a small router with the cable company, but when I got the new router from Verozon the install guy said i didn't need it any more, and moved the ethernet plugs over to the new router. Everything worked fine for years... until the wireless functions started to fail (I don't use the wireless for the office, just the family), so, Verizon told me I had to replace it with a new M1242WR - rev. I router. I transfered all the cables over the the new router in exactly the same positions the were in on the old router. Now my printing software (RIP software) can't see the printer when it's routed through the FiOS router, but If I move the ethernet cable from the router and plug it into the back of my computer, which disconnects my computer from the network and gives me a dedicated ethernet connection to the printer... everything works fine. It's just when I try and run it through the router that my computer and printer can't talk to each other.
    My RIP software that drives the printer demands a STATIC IP address set up in a TCP/IP printing port, and the printer is set up with the corresponding static IP address (this is unavoidable). Images of the setup screens below...
    The RIP software setup is here... very simple:
    Now, on the actual printer, the IP address matches (192.168.0.110), the subnet masks are 255.255.255.0, and the default gateway is set at 192-168.0.1.
    This is all the info I have, and all I know is that it worked fine with no setup on the old router, and does NOT work on the new router... it used to be plug-n-play, now it's plug-n-stop.
    Again, when the ethernet cable run directly from the computer it drives the printer just fine, connected to the router first and it failes completely.... HELP!!!!!!!!!!
    Like I said... this has worked great for years, I haven't changed a thing on the printer or computer... the only change is the new router... I'm out of production until I figure this out (
    Cabe...

    The revision I router out of the box uses the following default IP addresses
    192.168.1.x IP Address
    255.255.255.0 Subnet
    192.168.1.1 Default gateway
    I notice you aren't using that IP Address scheme at all in the screen shots.  Did you change the Verizon router internal settings to use the 0.1 ip scheme? 

  • Reading from a text file in to an array, help please

    I have the following
    public class date extends Loans{
    public int dd;
    public int mm;
    public int yyyy;
    public String toString() {
    return String.format( "%d,%d,%d", mm, dd, yyyy );
    public class Loans extends Borrowing {
    public String name;
    public String book;
    public date issue;
    public char type;
    public String toString(){
    return String.format( "%s, %s, %s, %s", name, book, issue, type );
    import java.util.Scanner;
    import java.io.*;
    public class Borrowing extends BorrowingList {
    private Loans[] Loaned = new Loans[20];
    if i want to read in from a text file in to that array how do i do it?

    sorry to keep bothering you and thanks loads for your help but now I am getting the following error mesage
    C:\Documents and Settings\MrW\Menu.java:43: cannot find symbol
    symbol : class IOException
    location: class Menu
    }catch(IOException e){
    Note: C:\Documents and Settings\MrW\Borrowing.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    BUILD FAILED (total time: 0 seconds)
    for this line
    }catch(IOException e){                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Print job from Windows hangs in iMac print queue - help please!!!

    I have a new iMac core duo and am trying to print to my Epson Stylus CX4600 from Windows. Bonjour sees the printer and sets it up, the print job seems to go just fine, but when I check my G5 (the Epson is connected to the G5) I see the job stopped. If I try to start the job, nothing happens... the only way to clear the Q is to delete the job.
    I have all the latest drivers, and have tried bonjour both with generic postscript and with the Epson driver - no luck.
    Any advice would be greatly appreciated....

    Embedded Chat turns Web Visitors into Clients
    Turn up to 90% of your web visitors into Clients!
    Our Embedded Chat does just that.
    http://www.chatresponse.com/
    http://www.chatresponse.com/
    http://www.chatresponse.com/
    Not just live chat, Embedded Chat!
    This Phenomenon Will Skyrocket Your Sales!
    If you are not using Embedded Chat on your site, you are losing valuable
    clients. That is just a fact. There is an unimaginable difference what
    Embedded chat does for converting browsing web surfers into leads and
    clients.
    We get your visitors contact information or it's FREE
    We're so confident that it works, we give you a 15-day, fully-functioning,
    free trial. Go ahead, try it out.
    Our staff is goal oriented and dedicated to getting the contact information
    of people that are interested in your products or services.
    With our Embedded chat your customers do not even have to click a button to
    chat, they are already in a chat when they enter the site, If they ignore
    the chat window we have the power to invite them to chat with a floating
    invitation. Why would you want to do that Direct contact with the customer
    means customer confidence, conversion rates and sales skyrocket.
    Imagine this:
    Let's say that your customer contacts you for a live chat through our
    Embedded Chat. They'd like to buy a pack of 40 burritos, but they only see
    packages of 15. Not only can you push them to the page showing a pack of 50
    burritos, you can offer them a discount and assist them through the purchase
    process all through Embedded Chat. The customer is happy, they commend you
    for the great customer service, and you've got more money in your pocket.
    Embedded Chat helps organizations to increase online Sales Revenue and
    provide better Customer Service - all in Real Time - and literally with a
    mouse click
    Embedded Chat provides instant benefits and maximum returns to its clients.
    Embedded Chat Significantly increases new customer acquisitions and online
    conversions.
    Embedded Chat Generates qualified leads from your online marketing and
    print campaigns.
    Embedded Chat Decreases shopping cart abandonment rates and customer churn.
    Embedded Chat Increase sales, reduce support costs, and attain rapid ROI.
    Embedded Chat Services more prospects and customers, more efficiently.
    Embedded Chat Maximizes customer satisfaction, loyalty and profit.
    Imagine if your customers can get answers and live help to their questions
    from you right into right now. No matter how informative your website is,
    people will have more questions about your services or product. Our live
    chat software will increase trust by making your website come alive.
    * Instead of leaving visitors to navigate your site by themselves, you
    would be in control. You would be able to engage your customers and
    proactively guide them right toward a sale.
    * No longer will you worry about losing a potential customer because a
    simple question wasn't answered.
    * You will increase your visitors' confidence by showing there is a real
    live person behind your site.
    Increase your sales: Chatters are 3 times more likely to buy from the
    site
    Site visitors that are provided the option to chat with a sales expert are
    25-200% more likely to make purchases from your website. Online shoppers are
    still wary to trust a website's catalogue technology and purchasing
    procedure, and sometimes even the most web savvy shoppers need help. With
    Embedded Chat, your business can offer your customers the information and
    online confidence they seek. Agents can use the opportunity to develop
    relationships with customers and suggest items to upsell.
    Improve your customer service: Chatters are twice as likely to return to the
    site.
    90% of customers prefer live human interaction for online assistance, but
    80-90% of the same customers would rather not use the phone. Using Embedded
    Chat, customers avoid the hassles of navigating phone systems or waiting on
    hold for up to an hour to speak with a phone agent. Many will simply give up
    and find your products elsewhere if they can't get help instantly. This is
    especially true among dial-up internet users.
    Increase your online revenue
    Chatters are 3 times more likely to buy from your site having spoken with
    your sales staff
    Increase staff performance
    Each chats is automatically saved online so you can access them at the end
    of every day to see how your staff performed. This will give you a better
    idea of what your customers requests are and how your staff are handling
    them.
    Reduce your staff costs
    One operator can easily handle multiple customers at the same time.
    Resolving customer support issues with Embedded Chat is up to 90% less
    expensive than a phone call or an email. By incorporating the live chat
    button into the emails your staff send to customers you also make it easier
    for customers to respond quickly.
    Increase your customer satisfaction and loyalty
    Your customers experience shorter waiting time and get immediate answers to
    their questions.
    24-7 Chat Answering
    Embedded Chat has a 24 hour call centre that can answer your visitors chats
    for you after hours and on weekends, passing you on leads so even when your
    staff have left for office we are still gathering leads to pass onto you the
    next business day.
    Hosted and Client Hosted
    Embedded Chat has both a hosted version (stored on our servers) and a client
    hosted (stored on your servers) program allowing you more flexibility.
    Report Download
    At the end of each day our team can send you a file with all the chats that
    took place that day. This can be printed off for you to browse no the way
    home. This allows an excellent insight into what your staff are saying to
    customers and what your customers are looking for.
    Prechat Survey
    Embedded Chat allows you to set-up a series of questions for your visitors
    to answer once theyve clicked the chat button. This will help you to build a
    profile of your website visitors before you begin chatting. You can also use
    this to follow up with our website visitors.
    Customised buttons
    Our team can provide you with well-designed buttons to attract your visitors
    attention. We can also customise the chat interface to ensure that it blends
    with your website.
    Canned Responses
    You can save standard responses to questions to answer typical customer
    queries. This saves time and enables you to word your responses well.
    Chat logs
    All chats are automatically saved on a secure database which you can view 24
    hrs 7 days a week.
    Reporting
    With Embedded Chat you can use chat logs to run reports on various criteria
    such as operator reports, reports by date, reports by keyword(s), reports by
    prechat survey criteria
    Postchat Survey
    Your sales staff can rank conversations based on the quality or subject of
    conversation.
    Chat Alert
    Your staff are alerted every time a customer enters a chat through a beeping
    sound on their pc.
    Multiple Chats
    Your staff can have chats with multiple visitors at the same time.
    Chat Transfers
    Your staff can pass a visitor to another staff member to handle their query.
    Operator Interchat
    Your staff can contact each other instantly with any queries they may have.
    Multiple Operators
    You can have multiple staff online using Embedded Chat
    Push Page
    Quite often you will have a web visitor who cant navigate to a particular
    page on your website. Using Embedded Chat you can push the page to them so
    all they have to do is to click the link and they are there. Quite a number
    of our clients use this to encourage their web visitors to register for a
    particular product.
    Hosted Software
    The chat interface can be loaded onto our server so that you don't have to
    do anything more than place the live chat button on your web pages. In fact,
    we can also do this for you if you don't have time. We also have a non
    hosted version which can be hosted by you on your servers.
    Offline Email Form
    Allow your visitors to leave a message if you are not signed in as an
    operator. This message will be forwarded directly to your e-mail box.
    Alternatively we also have the option of answering the chats for you after
    hours too.
    Customisable interface
    This feature brings a little flare as it allows you o customise the look and
    feel of your interface in seconds changing the colour of the interface, the
    graphics and the fonts in the conversation with customizable colours, font
    types, and sizes. Available for operator and visitor fonts.
    Browser Compatibility
    Embedded Chat is compatible with all browsers ensuring that you don't have
    any frustrated chatter trying to get through.
    Visitor history
    Click the name of the visitor and see the past chats they had with your
    company.
    Typing indicator
    A 'operator is typing' message indicator will appear which allows the other
    party to know when you are typing.
    Return Visitor Recognition
    When customers connect with a chat, their network IP addresses are recorded.
    When customers return, their presence is detected and prior chat histories
    can be instantly accessed.
    Chat Invite
    You can now invite your web browsers into a chat in real manually or
    automatically. This boosts interaction between your company and your website
    visitors.
    Visitor Monitoring
    You can now monitor your website visitors in real time, see what web page
    they are on, what search engine they came from and what keywords they used.

  • Printer Profiles Help Please

    Hi all, hoping to get a bit of help understanding printer profiles, the benefit of using them, how I know which profile to use etc etc. Would obviously like to get the best prints I can and if changing these setting will help it makes sense to get to knw how to use them. Just got a new printer too, so makes sense to start off on the right foot with it.
    Using a Mac with OSX 10.9.1
    Lightroom 5.3 Camera Raw 8
    Canon Pixma MG5550 Printer. (new)

    Printing using profiles has the potential of greatly improving your color accuracy and optimizing the results. I don't have the same printer you do, I have a Canon Pixma Pro-100. On the Canon website, under support for my printer, there was a download available that installed printer profiles for all of the different Canon papers. Additionally, I use several different Red River papers. And Red River provides profiles and instructions telling you what profiles to use to get the best results.
    But the profiles alone will not guarantee that you will get good results. Your monitor needs to be adjusted to match what the printer produces. Those who are in the know insist that a hardware calibration device is a must in order to get accurate color. So far, I have not purchased one. But at the very least you should make a print and then adjust your monitor using monitor controls and operating system controls to match that monitor as closely as you can to the print. This is not the ideal or recommended way to set up your monitor. I'm still deciding whether or not to purchase a calibration device.
    Once you have got your monitor adjusted to your satisfaction the process to set up your printing requires careful attention. It involves choosing one of the Canon papers that is closest to what you are using if it is not Canon paper. You make this choice in the Canon driver, and you choose from one of the Canon papers. You turn OFF color management in the printer driver. Then in your software that you will use to print you will instruct it to manage the color. If you are using third-party paper and have profiles for that paper, the manufacturer will tell you what profiles you should use.
    Printing with profiles proved to be a bit tricky for me when I first started. I made several mistakes. But once the process sank in I found that my prints improved significantly.

  • I have an I pad 2and have an Epsom printer I have printed things off before but since changing my room around and turning off my printer I have trouble connecting to wi fi again my printer cannot recognise the printer again help please

    I have an I pad2 and an Epsom printer I have printed off things before on my printer but since moving it and having to switching it off my printer will not recognise my I pad I have tried putting in my security key but half way through doing this the message comes on to the error message saying printer recognised but I cannot get it to print help please

    I have done this but it still didnt work but thanks

  • I don't understand why this simple program will not print.  Help please!!!

    This program runs with no errors, it just doesn't print anything. Anyone have a clue as to why it doesn't print anything?
    Here is my code:
    import javax.swing.JOptionPane;
    public class Converter {
    public static void main(String[] args) {
    int a,b,c;
    int inputNum=Integer.parseInt(JOptionPane.showInputDialog(null," Enter a length in yards: "));
    String measurement = JOptionPane.showInputDialog(null,"Enter the unit of conversion (inches, feet, or centiyards): ");
    if (measurement == "inches"){
    a = inputNum*36;
    System.out.println(a + "inches");
    else if (measurement == "feet"){
    b = inputNum*3;
    System.out.println(b + "feet");
    else if (measurement == "centiyards"){
    c = inputNum*100;
    System.out.println(c + "centiyards");
    }

    Don't confuse String's equals() method with the equality operator '=='. The == operator checks that two references refer to the same object. If you want to compare the contents of Strings (whether two strings contain the same character sequence), use equals(), e.g. if (str1.equals(str2))...
    Example:String s1 = "foo";
    String s2 = new String("foo");
    System.out.println("s1 == s2: " + (s1 == s2)); // false
    System.out.println("s1.equals(s2): " + (s1.equals(s2))); // trueFor more information, check out the Java FAQ
    ~

  • 'This report uses an invalid printer.' Help please.

    'This report uses an invalid printer. The default printer will be used instead'
    I got this error message when opening an old report to make some changes.  We use Visual Source Safe so I checked out the bill and went to open it. After  I opened this bill and that error popped up, I got a message saying the report was read only and I couldn't make any changes. I googled the error and it said something about my printer settings needing to be changed.  How do I go about changing the printer settings if I can't edit the bill?

    This warning message comes only when there is no printer software exist in the machine which you have used in the report while developing. So when you open the report you will get this warning message and if you click on OK then it takes the system defult printer software settings. If you want to overcome this warning message then open the report in crystal designer and go to "page setup" and check the option "No Printer" and save the report. Now if you open the report again it doesn't prompt the warning message.
    HTH,
    Raghavendra.G

  • Pdfs come up as blank and preview and therefor cannot be printed.  Help please!

    When I am trying to print a document the psf comes up as blank so I can't print it.  Any auggestions on how to change a setting to solve this?  Thank you.

    ry the following two troubleshooting steps. One or the other will solve it!
    1.  System Preferences > Print & Scan > Print>Clear the print queue
    if that doesn't work try:
    2.
    Open the Finder.
    From the Finder menu bar click Go > Go to Folder
    Type this exactly as you see it here:
    /Library/Internet Plug-Ins
    Click Go
    Move the Adobe PDF browser plugin to the Trash.
    Quit then relaunch Safari to test.

Maybe you are looking for