Queue help please
Hey guys I have a problem with inserting the alphabet in the queue. I understand that it is wrong to do what I did, so can anyone tell me a better way to make a Queue of the alphabet. Thanks in advance.
Here's code:
String alpha = "abcdefghijklmnopqrstuvwxyz";
Queue<String> alphaQueue = new LinkedList<String>();
Queue<E> alphaQueue1 = alphaQueue.offer(alpha);
Yes! It was wrong to do what you did! Wrong!
Jeesh. It's not like you killed someone.
Well let's see what you did that is screwy.
offer returns a boolean, but you tried to assign it to a new Queue.
You added the whole alphabet string as a single element to the Queue, but the chances are good that you were supposed to add each individual letter. This may not be a problem; only the person who gave you this homework assignment will be able to tell you one way or the other.
You probably want to split the alphabet string into characters (either chars or Characer objects or String objects). How you do this will depend on the assignment, but it may involve regular expressions, or String.toCharArray. Ask your teacher for details.
Similar Messages
-
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. -
Broken Bonjour with Canon MF4350d after 10.6 upgrade - Help Please.
I have been using a Canon 4350d with no problems with 10.5.8 - including Printer Sharing (Bonjour). Now, after updating to 10.6 (now 10.6.2) I can still print fine, but I have lost all Printer Sharing. All settings appear to be right, and my other macs appear to be printing through the one connected via USB to the printer, but it never goes through. HELP Please. Thank you.
According to the UFR2 User Guide on page 2-8, the driver can be removed from the Mac by trashing the following folders. Note that you should delete the print queue first, by opening Print & Fax, selecting the MF model in the Printers list and pressing the minus button.
System Volume > Library > Printers > Canon > UFR2
System Volume > Library > Launch Agents > jp.co.canon.UFR2.BG.plist
System Volume > Library > Printers > PPDs > Contents > Resources > en.lproj > CNTD**Z*2.ppd.gz
(where * indicates the printer model and 2 indicates the language of driver used)
With these files removed you can then empty the trash, although you may have to open Activity Monitor and stop the 'UFR II Backgrounder' service before you are able to remove all the files from the trash.
With the v2.10 driver removed you are ready to add another driver. However you need to be aware that the v1.80 driver cannot be used on 10.6. If you were using it previously then it would suggest that the 10.6 Mac was an upgrade from 10.5 rather than a clean 10.6 install. On a clean 10.6 Mac, then v1.80 driver will not operate correctly.
What you may be able to do is have the v1.80 driver installed on a Mac running Leopard and shared. You may then be able to use the v2.10 driver on the Snow Leopard Mac's to print to the Leopard share using the v1.80 driver. Note that I haven't tried this so I cannot say if this will work for you. Personally I always ensure I get a printer with Ethernet or wireless support so that I can avoid printer sharing... -
I am trying to find a driver to syn mini mac to Lexmark x9350. Can any body help please?
Humm... the only Lexmark X9300 download that I see is for SL 10.6...?
Lexmark United States Support & Downloads for Lexmark X9350
I'm not sure exactly what "component missing" means, but it sounds more like a missing driver than a missing printer part?
To be honest, I think your going to have to remove all previous Lexmark drivers and software from your system, temporarily connect the printer up USB and use the system updater as per the link that I posted in my first reply.
Lexmark United States
You might also check to see if you have a failed print job..?
Open the Print & Fax Preferences and select Open Print Queue...
Pause the Printer using the green button.
Select (highlight) each of the jobs in Status and Delete them all.
Resume Printer using the green button and send it a new job. -
I keep being asked to update my Safari but when I do a Software update it scans but never gives me a list and just says no new updates. Help please!
There are no updates to either OS 10.5.8 or Safari 5.0.6.
If you need a later version of Safari you must first upgrade your operating system to a later version of OS X. -
Please see my ? above: Im making an IMovie and need the last frame to just be text (can be on a color). I don't know how to go about doing this. Ive already done all my photos and captions. Need to have it ready for TOMORROW: Friday May 23rd. Help please!
ThanksYou can choose a background for the text from Maps and Backgrounds. Just drag a background to the end of the timeline, adjust to desired duration then drag title above it.
Geoff. -
I have a Bose soundtouch system .Until today I could play my iTunes music through it via air player . .I have just uploaded the latest upgrade from iTunes and now I am unable to connect to the Bose system . Can anyone help please? I can connect via my iPad and by using the Bose app so it is not the Bose at fault
@puebloryan, I realize this thread is a bit old, but I have encountered a similr problem and wondered if you had found a solution. I've been using home sharing from itines on my PCs for years, but two days ago, it suddenly stopped. I can share from my Macs, but not from the ONE PC library where I keep all my tunes. I tried all the usual trouble-shooting measures.
After turning home sharing off on the PC's iTunes, turning it back on and turning some other settings off and on, my Macs and Apple TV could briefly "see" the PC library, but as soon as I try to connect -- the wheel spins for a bit and then the connection vanishes. It's as if they try and then give up.
Since this sounds so similar to your problem, I was hoping you finally found a solution. I am also starting a new thread. Thanks! -
My iMac 24 can no longer be paired with the keyboard; it doesn't recognise any keyboard at boot up, even the one it is paired with. Can anyone help, please?
Thank. SimonBrian - The batteries are fine and there has only every been one keyboard paired with it. We have tried my MacPro keyboard as well, and it will not even recognise that there is a discoverable keyboard nearby.
Thanks, Simon -
Photoshop Elements 6 on Mac help please !!!!!
Hi there,
I need help please !!!!!
I have PSE 6 for my imac and bought myself a NIKON D60 so far so good. I have installed PSE 6 which comes with ADOBE Bridge CS3
I have bought a book as well as I am new to photoshop and in fact DSLR cameras.
I have got my photos into Bridge OK by the way they are JPEG format. According to the book I can open the JPEG in camera RAW by either selecting the JPEG and then pressing cmd+R or by selecting the JPEG and select open with and camera RAW should be available to selct.
I cannot get of the options to work any ideas please
Secondly I have taken some photos in RAW format and put then into Bridge again I cannot get the camera RAW interface to open with these neff images.
If I try to open the image PSE 6 opens and gives me an error that the file format is not supported by PSE 6
Am I missing something here as I have been trying for a week now !!!!!
Sorry if this comes across a stupid question but it is new to me
Chris UKThere's no "theory" about it. You should be able to open a raw file from bridge by double-clicking it, but it will open in ACR in PSE. You can't just use ACR within bridge in PSE, if that's what you're trying to do. To open a JPEG in ACR, go to file>Open in PSE and choose Camera raw as the format after you select the file but before you click Open.
If you've correctly updated ACR, bridge should show you thumbnails of your raw files. If it doesn't try emptying the Bridge cache. -
Photoshop CS2. Help please.
Approx 8 years ago I purchased Photoshop CS2 online from Adobe. This past weekend I had to buy a new computer (Windows 8.1), and when I logged into my Adobe account just now to obtain my serial number and enter it after I attempted to download CS2, it said invalid serial number. Help please.
Both tech support and the online chat person were not able to help me.The Activation Servers for CS2 and prior have been taken down. See the link below for an explanation and solution. Be sure to follow all directions, including using the new download serial number supplied on the page.
CS2 and prior
http://helpx.adobe.com/x-productkb/policy-pricing/creative-suite-2-activation-end-life.htm l
--OB -
I used to have an OLD Photoshop cd but it has been lost and my program is no longer on cd. I talked with some photographer friends and this is what one of them told me to get: Adobe Photoshop Lightroom and CS CC... HELP please?
If you still have your serial number, look at OLDER previous versions http://www.adobe.com/downloads/other-downloads.html
Otherwise, the US$ 9.99 plan is what is current at Cloud Plans https://creative.adobe.com/plans -
Creative live cam voice help please
Help please,
We are using the "live cam voice" model, with our computer (Vista 32bit), that appears to work OK, but after a few minutes we get the BSOD! We have tried un installing and re-installing drivers without any effect.Has anyone had this problem and if so how did you fix it.
Regards,
ArthurThanks for your response. I have tried 3 ports so far, all with the same outcome. One of my sons had it happen to him on another computer (XP SP2) using this webcam . As to programmes open at the same time, I am not computer literate and have no idea what programmes were running on each occasion.We use the webcam for Skype and apart from that I may also have IE open and perhaps Outlook Express. Over and above those CS4 sometimes.
If I cannot resolve this, can any one suggest another webcam please.
Regards,
Arthur -
I get error message "unknown error" When trying to log on to itunes via pc, help please!
I get error message "unknown error" When trying to log on to itunes via pc, help please!
Hello, trolle56.
Thank you for the question. You may find these articles helpful in troubleshooting the error received with the iTunes Store.
Can't connect to the iTunes Store
http://support.apple.com/kb/ts1368
iTunes: Advanced iTunes Store troubleshooting
http://support.apple.com/kb/ts3297
Cheers,
Jason H. -
I downloaded an upgrade to my adobe reader today, and ever since my search engine has switched to yahoo and wont change back to google. I have a macbook pro, help please? Does anyone know how I can change this back? I have tried through my settings but it doesnt work
Hi Timia,
If you are using Safari as a web browser :-
Open Safari, go to Safari menu > Preferences > General, and put Google as the homepage. Then, choose Google as your default search engine.
If you are using Google Chrome as the web browser :-
Open Google Chrome.
In the top right corner of the page, click the Chrome menu Chrome menu > Settings.
In the "Search" section, select Google from the drop-down menu.
Let me know if you still experience any issue.
Regards,
Aadesh -
A Song that i purchased on my iPod Wasnt able to get into my itunes library somehow ,and i want to sync my itunes library to my iPod because i recently Got a store brought CD and i want to insert it ,but im afraid my songs will get deleted ,especially my purchased ones...can someone help please ?
Just sync. You can alway redownload iTunes purchases by:
Downloading past purchases from the App Store, iBookstore, and iTunes Store
Maybe you are looking for
-
Wiki Migration-ML to Mavericks-At my wits end. Need working steps.
Today I did my nth attempt at upgrading our mountain lion server by first trying the upgrade on a clone of the server. For the nth time - no success. Folks, I've been been trying off and on for months to upgrade our MacMini Server with Mountain Lion
-
Insert bookmark in pdf programmatically
Hi all, im using acrobat 7.0 and let me know is it possible to insert bookmark in pdf using vb.net. if so please help me with samples. Thanks in advance. Regards, Parthasarathy.S
-
I have a projector connect to my 2012 MacBook Pro.
How to I send the output to projector. I have a DVI conv dongle plugged into one of the thunderbolt ports and the projector is on.... Jeff
-
Hi, I have posted challan with wrong information in J1INCHLN - Create Remittance Challan . I have not updated bank challan till . I want to reverse the challan thru J1INREV - Cancel Remittance Challan but i am not able to get the number of original c
-
Itunes doesnt recognise my iphone 3gs after IOS5 update
Itunes will not active my iPhone 3GS, all this since updated to IOS5, had to restore factory settings and tried re-installing itunes but still doesn't locate the phone