Now this is interesting!........I think???!
I have a class called Main.java. This class works perfect if i delete one line, which is: commandTokens = command.split("\\s+") ;
i use the same code at uni and it works, but as usual it doesn't work on my home computer. I am using jcreator on jdk 1.2.2 Thanx
Here is just a sample omy code:
while ((command = in.readLine()) != null)
command = command.trim() ;
if ("".equals(command))
continue ;
// Split the command string into tokens. Tokens are
// defined, in this case, as a sequence of whitespace
// characters.
<code>commandTokens = command.split("\\s+") ;<code/>
if ("n".equals(commandTokens[0]) && commandTokens.length == 1)
response = game.moveNorth() ;
System.out.println(response) ;
}
Sorry i forgot to add the error message oops:
Main.java:40: Method split(java.lang.String) not found in class java.lang.String.
commandTokens = command.split("\\s+") ;
Similar Messages
-
Early today Alt, Ctr and Click and drag changed the brush size. Now it makes the move tool work. Anyone have this problem. I think Adobe had an update and put a bug in the program.
Which version of photoshop and operating system are you using?
windows:
Alt + right click + drag left or right
mac:
Control + Option + left click + drag left or right -
When I update an app it asks for my password (as usual) but now there is no touch keyboard or other way to enter the password. This problem started, I think, after the latest OS update.What's going on?
I tried a reset and it did the trick.
-
WHEN I USED TO CONNECT INTERNET FROM MY IPHONE 4S PERSONAL HOTSPOT VIA USB, AN ICON IN THE NETWORK PREFERENCE NAMED "IPHONE" APPEARS.... BUT NOW THIS IS NOT HAPPENING AND I AM NOT ABLE TO CONNECT PERSONAL HOTSPOT VIA USB CABLE. PLEASE HELP ME OUT???
Please don't shout! Using all uppercase means shouting on the internet. If your keyboard is stuck please say so, otherwise people will think you are being obnoxious.
Now the first question is, when you are saying connecting to personal hotspot, have you always been using the iPhone to connect to the internet? Are you someplace where the only place to connect is available via tethering to the iPhone's celluar network? Or do you have other options? -
I'm not sure how to post a message. I hope this might interest someone. The situation; 3 floors,I am having trouble with an an Airport Extreme, 802.11n on the top floor and a Mac Pro 3.1 on the bottom floor. Not always but often it has trouble seeing the Airport and making a connection. I have an older Airport Express, would it help to install it? would it work best if it was installed in the same room? should it be installed half way in between? Get another Extreme? The Mac Book Pro on the middle floor can see 11 networks in the neighbourhood if that might be causing a problem or would if I installed the Express. Thank for your consideration.
Thanks for your time ... I appologize for the font and colour, I compossed the question in pages and failed to notice the font colour as grey ... there are a variety of computers of various ages so I think it is using a setting that allows both 5G and 2.4 ... the connection to the Airport is thru a cable modem and cable does run throuhout the house ... maybe those hard wires would be a place to look at ... do you think that putting the 'Express' on the second floor might help ... thanks again ...
-
I know how to add lyrics to a song in iTunes and then see them on my iPod. But now I'm interested in watching those lyrics on my windows pc...can I ? What do I do so than I can see the lyrics of the song while it plays ?
This is the correct behavior. When you play a song, the play count and last played time gets updated. When you resync the iPod, the track gets copied to the iPod to update these new changed fields.
There is no fix for this, this is what it is supposed to do. -
Can anyone help me with a problem i am having with my music on my iPhone 4S. I have put alot of Compilation CDs in my library on iTunes. I download these tracks onto my phone, everything is ok so far. Now, this is what is niggling me and I don.t know how to resolve it. This is my problem:
Have downloaded for example: Queen – Bohemium Rhapsody from a compilation album as well as a few complete Queen Album CDs into the iTunes library and then put them into playlists,
When I go onto my phone and select Queen on the MUSIC app using Songs tab at the bottom of the screen it will display all Queen songs and their resective Alum pics, that is all those not in a complilation album, .
If I know the song title I can select the songs tab and find the song that way,
I’ve tried fiddling with the settings in the iTunes app by going to ‘get info’ tab and trying to sort the problem out that way but am not having much luck.What I want the phone to do is show, for example all Queens songs including those in compilation albums. Can this be done, would be grateful for any ideas on how it can be done, that is if ic can be done, any ideas
Thanks for your helpTry assigning Queen as the Album Artist on the compilations in iTunes on your computer.
-
I was told by comcast that we had a computer in the house with a malware virus, they even said that they were going to terminate our service if we did not get it fixed. Now this week we hear that there is a trojan malware virus, how do we get rid of it?
Hello,
Flashback - Detect and remove the uprising Mac OS X Trojan...
http://www.mac-and-i.net/2012/04/flashback-detect-and-remove-uprising.html
In order to avoid detection, the installer will first look for the presence of some antivirus tools and other utilities that might be present on a power user's system, which according to F-Secure include the following:
/Library/Little Snitch
/Developer/Applications/Xcode.app/Contents/MacOS/Xcode
/Applications/VirusBarrier X6.app
/Applications/iAntiVirus/iAntiVirus.app
/Applications/avast!.app
/Applications/ClamXav.app
/Applications/HTTPScoop.app
/Applications/Packet Peeper.app
If these tools are found, then the malware deletes itself in an attempt to prevent detection by those who have the means and capability to do so. Many malware programs use this behavior, as was seen in others such as the Tsunami malware bot.
http://reviews.cnet.com/8301-13727_7-57410096-263/how-to-remove-the-flashback-ma lware-from-os-x/
http://x704.net/bbs/viewtopic.php?f=8&t=5844&p=70660#p70660
Check now whether your Mac is infected by Backdoor.Flashback.39!
http://public.dev.drweb.com/april/ -
iphoto is not responding. I just finished importing all of my downloaded pictures (about 1,000) into iPhoto now this happens. I have version 9.5.1. I am using OS X 10.9.5
Did you import an iPhoto Library from the old Hard Drive? Do you still have that old Library?
The way to clear out a Library is to Export the photos - Apps like iPhoto2Disk or PhotoShare will help you export to a Folder tree matching your Events.
For the annoying start-up message:
Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
Look there for a Folder called 'Import' or 'Importing'.
Drag it to the Desktop. *Make no other changes*.
Start iPhoto. Does that help?
If it does then look inside that folder on your desktop. Does it contain anything you want? If not you can trash the folder. -
I wanted to change my password for logging in to my work email address. The site was not prompting me to change it automatically, so I manually removed it from the list in the TOOLS-SECURITY-OPTIONS page. Now this site won't retain any kind of entered data, such as addresses that I compose emails to very regularly.
How can I get this site back on the list that will save passwords? I've tried re-starts, log-out and back in, etc, and it won't prompt me to save a password.Shelady wrote:
... (wasn't even aware my gmail account had anything to do with Microsoft) ...
It doesn't. Gmail is owned by Google.
Shelady wrote:
Also can someone tell me how I report spam on my iPhone and iPad in a gmail account?
Report it to Google: -
I have done the softer update and now this system request a connection with a Mini HDMI connector for iTunes I don't understand why ?
DO I HAVE TO HAVE THE MINI HDMI CONNECTOR TO COMPLETE THE SOFTER UPDATE PROCESS ?You might be seeing a Micro USB cable (Not HDMI) that is because your Apple Tv is in Recovery Mode due to some reason and it needs to be Restored by connecting it to iTunes on your Computer. So if you have a Micro USB cable ( which comes with Android Smart Phones ) then try to connect your Apple Tv to your computer using the same and with the help of iTunes Restore your Apple Tv to Factory Settings. Go through the below Apple Support kb which says " If your Apple TV still does not respond or if you were unable to follow the above steps "
http://support.apple.com/kb/ht4367 -
I have Iphone 5S and I never updated from IOS 7.1.2 to IOS 8 and now this morning I noticed that IOS 8.0.1 was available but since it had bugs it was removed, so can anyone tell me if I can update to IOS 8 not 8.0.1 but just IOS 8?
No its not out yet, when I went in to settings it still says 8.0.1 and I just searched on google, it says IOS 8.0.2 will come out in a few days. I just want to get IOS 8, I don't care about IOS 8.0.1 or 8.0.2 .
-
Firefox displayed "search UK" or "web" -now this option removed .How to restore?
I use firefox to access internet ,Google home page .Formerly 2 choices "search web" ,or "searchUK" Now this choice has gone -Have "search" or I`m feelining lucky -no UK
== This happened ==
Every time Firefox opened
== about a week agoAre you using : http://www.google.co.uk/firefox ?
-
okay so i have been trying to contact apple for days now but i was just thinking why do we have to only choose between white or black for the digitizer? would i be able to send my ipod into apple to get it customized to a different color besides that?
Apple does not offer custom colors. I'd suggest you get a skin for your iPod. Those are available in hundreds of colors and patterns and since they're not permanent, they don't affect the iPod's warranty and you can change if you ever get tired of the skin you chose.
Regards. -
Hello I bought a G-Raid GR4 4000 4 TB and used it for a backup with my new Imac27. Now this is all I get. "Time Machine couldn’t complete the backup to “G-RAID”. to complete backup. An error occurred while creating the backup folder."
Any idea what I should do?If you have more than one user account, these instructions must be carried out as an administrator.
Launch the Console application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
View ▹ Show Log List
from the menu bar.
Enter the word "Starting" (without the quotes) in the String Matching text field. You should now see log messages with the words "Starting * backup," where * represents any of the words "automatic," "manual," or "standard." Note the timestamp of the last such message. Clear the text field and scroll back in the log to that time. Select the messages timestamped from then until the end of the backup, or the end of the log if that's not clear. Copy them (command-C) to the Clipboard. Paste (command-V) into a reply to this message.
If all you see are messages that contain the word "Starting," you didn't clear the search box.
If there are runs of repeated messages, post only one example of each. Don't post many repetitions of the same message.
When posting a log extract, be selective. Don't post more than is requested.
Please do not indiscriminately dump thousands of lines from the log into this discussion.
Some personal information, such as the names of your files, may be included — anonymize before posting.
Maybe you are looking for
-
i just bought a macbook and it is the first mac i have owned. so far i love it anyway i purchased a Belkin switch to mac cable to transfer all of my data from my dell to my mac anyway it was not working at first so i decided to delete the software an
-
Error in Installation 4.6b - error ORA-01918
Hello all! I'm installing SAP R/3 4.6B in Windows 2000 and database Oracle 8.1.7. I am following the installation guide 4.6C because the document indicates to me that I must follow this guide when is Windows 2000 and Oracle 8.1.6. The progress of ins
-
Data files free space calculation
Hi, I have a query that calculates the Max Size (MB), Allocated (MB), Used (MB) and Used (%) for each data file in a 10.2 database. The results from this query are similar to what I see in dbconsole or EMconsole except for the undo datafile, my scrip
-
Illustrator pictures appear/disappear in InDesign CC?
I'm importing two Illustrator CC pictures into an InDesign CC file (Running Adobe CC on Mac OS X 10.8.5). If I set my display preferences to "Normal", they show up correctly (although an imported Photoshop JPEG appears in low-res). If I put the displ
-
Hi, I have just started experiencing a strange problem. When I right click on a single file (document, movie, pic, etc.) to change the color, the finder quits. This does not happen when right clicking a folder. I wonder if someone has experienced the