Help me I am new

I have to design a java application that will be called PigLatin. An example of this would be if the user would enter the word dog the output of the program would be ogday. It takes the first letter of the word and moves it to the end of the word and then adds the letters ay to the end of the word. I have no clue as to how to even begin as to how to code this problem any help would be nice.

Hi !
Here's some code, hope it will help.
class PigLatin {
public static void main(String[ ] args ) throws IOException {
String s = "" ;
String s1 = " " ;
String s2 = "" ;
try {
while ( true ) {
s1 = in.readLine ;
s2 = "ay" ;
while (true) {
s = s1.substring( 1 )+s1.substring( 0,1 ) + s2
System.out.println( s ) ; break ;
// substring(1) gives back the string without the first letter.
// substring(0,1) is the first letter of the string

Similar Messages

  • Is there a phone number to call Adobe.  I go around an endless loop pressing their contact info tabs?  Maybe someone at this sight can help. I am new to digital photo - I have been a B&W film photographer for many years. I have a problem with a Macbook Ai

    Is there a phone number to call Adobe.  I go around an endless loop pressing their contact info tabs?  Maybe someone at this sight can help. I am new to digital photo - I have been a B&W film photographer for many years. I have a problem with a Macbook Air.  It was working fine - I was using LR and a message came on the screen that said something like the memory was dangerously low.  I stopped and tried to delete LR files.  I couldn't do it.  I closed the program and tried reopening and got the message that there is not enough memory available to open LR.  I contacted Apple.  They spent a half hour on the phone with me and eventually told me they didn't know how to help. The tech said that LR had gobbled up all the memory and said I should contact Adobe and ask where and how my photo files are stored and to delete them.  I have several back-ups.  Thanks - Arthur

    This sort of error message only comes up for Lightroom when your hard disk is full. Indeed this has nothing to do with internal memory as that will be intelligently be dealt with. If you have a mac Book Air that is not so surprising as the cheapest versions come with very small hard disks and if you shoot raw with any recent camera, you'll fill up your hard disk very quickly and you can probably only store a few months of pictures if you are a typical photographer. So the bottom line is that you need to create some room on your hard disk. You should move some of your originals to an external hard disk. You can also delete some of your backup copies of your catalog file that Lightroom automatically generates every few days and that quickly gobble up hard disk space. So first figure out how full your hard disk is. To see that, go to the apple menu, hit -> About this Mac -> More info->Storage. You should see your internal hard disk on top and you'll find that it is almost entirely full with photos. Now find your Lightroom catalog file using Finder. It is usually in a folder in the Pictures folder in your home directory. You should see a Lightroom 5 Catalog.lrcat file, a previews file and a folder called backups. Inside the backups folder, you'll find a lot of subfolders. They have names that show the dates the backups were created. If you have backups of your entire hard disk, you can delete these backups when they are older than a few months. I usually only keep the last 4 around. Just drag the folders into the trash can on the dock on the bottom of your screen and empty the trash. This will probably free up enough space that Lightroom will already run again. Now start thinking about where you will want to store older images. If you have a good USB3 or Thunderbolt hard disk that is probably the best option. There is a video here by Adobe that has some instructions on how to do this: Is Your Hard Drive Full? Here’s How to Move Images to Another Drive in Lightroom. « Julieanne Kost's Blog If that doesn't work because you don't have enough hard drive space to run Lightroom yet, here is another set of instructions to move your files using the finder to the other hard disk: How do I move only my photos to another hard drive, leaving the catalog where it is? - The Lightroom Queen. If you follow that, as soon as you confirm all your images are on the new hard disk, you can delete them from your internal one. She is not so clear about that part but if you don't delete the originals that you moved off you don't free up space. You should move the folder structure over to the new hard disk and then reconnect the folders in Lightroom. That should make it refind all your images.
    That said, if you are uncomfortable with the computer in itself, your best bet is to find a local photography club. There is invariably a Lightroom savvy person in there that could help you move your files. That might be your best bet if you are uncomfortable moving these yourself. A general mac savvy person like you would find at an Apple store or so generally will not be able to help you with this except when they are photographers themselves and know Lightroom. You might get lucky with that.

  • Help! On the new iOS 7 I can't find spotlight search!

    Help! On the new iOS 7 I can't find spotlight search!

    Then you are swiping too close to the top of the screen.
    Spotlight Search

  • Can anyone help with associate my new iPhone with iTunes? My other old devices are there, but I see only how to delete one, not how to add one.  Thank you.

    Can anyone help with associate my new iPhone with iTunes? My other old devices are there, but I see only how to delete one, not how to add one.  Thank you.

    iTunes Match is a subscription system that allows you to upload your own music (e.g. coped from CDs) to the cloud so that it shows (in the cloud) on your devices and computers without having to sync/copy it.
    Automatic downloads allows to, for example, buy an app on your computer's iTunes and have it automatically download on your phone without having to connect and sync it or go to the Purchased tab in the App Store app on your download and download it yourself - but doing that, going to the Purchased tab and redownloading an app, should get it associated.
    But no, I'm not aware of any problems that not having it associated causes.

  • Opening Help Topic in a New Window

    I'm posting this inquiry after searching the forum for the above topic. I have a client who requires that a contextual help page be opened in a new browser window when users press F1 in a web application screen. The client does not want help opened in a new tab or in the same window as the web application screen.
    The web application for which I'm writing help supports only Internet Explorer, versions 7 through 9 (no other browsers). The client programs in .NET and, for security, handles HTML help pages like .aspx.
    I have RoboHelp HTML 9 installed. Contextual help mapping is done with an external XML schema that pairs web application screens with target help topics via F1.
    In practice, despite the new-window requirement, testers have found that CSH opens differently with different combinations of browsers and operating systems. With Windows XP - IE 7 & 8 and Windows 7 - IE9, when the user presses F1, the help screen is opened in a new tab. In Windows 7 - IE8 (32 and 64 bit), it opens in a new window. This last is the way the client expects it to work.
    Here's my question: With RoboHelp HTML 9, can I control whether help opens in a new window, the same window or a new tab? Or do I need to rely on a developer to configure the web application server so that help opens in a new window as expected?
    So far, after a search of user documentation for RoboHelp and my help mapping configuration files, I haven't found a way in RoboHelp or Help Mappings to control whether contextual help opens in a new window or a new tab. I would appreciate any information on whether this attribute can be controlled through a server configuration, or .NET, or some other aspect of the system beyond RH. Or am I overlooking something in RH?
    Thanks and regards,
    Tom

    I'm not sure here but I would say that there is no way you can make that happen from RoboHelp. I believe it will always open in the way you describe, according to the user's browser settings and operating system.
    If there is a way to do it, my gut feel is that is something that your developers will have to implement.
    As a software user, I think it would irritate me to find new browser instances opening but you have to go with what your client wants.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Help setting up my new IPod Touch on iTunes on windows 7 64bit

    Hello there,
    I need help setting up my new IPod Touch to my Itunes 10 application on a PC running windows 7 64bit. I have watched the tutorial on how to do it but what the tutorial says it is supposed to do is not what is happenning for me:
    1. In the tutorial it tells you to connect your ipod to your computer, then, (if it is for the first time) when the ipod appears and is selected, a window will come up allowing you to name your ipod, and begin selecting the options you wish to use.
    I did as instructed but quickly came against some technical issues.
    My issues:
    1-1: When I selected the new iPod Touch for the dirst time I got an error message.
    A) This was quickly fixed once I calld up apple support on the phone (turns out an IE browser setting was blocking it.)
    1-2: With that fixed I selected my iPod Touch again but instead of the window indicated by the tutorial, I instead got an iPod registration form window.
    1-3: I filled out the form and pressed the submit button (thinking everything was fine), then a new window came up that looks like this:
    Free Find My iPhone
    Free Find My iPad
    Free Find My iPod touch
    Set up Find My iPhone for free so you can locate your device if you lose it, remotely lock the screen, or wipe its data. You can also find your iPad or iPod touch.Set up Find My iPad for free so you can locate your device if you lose it, remotely lock the screen, or wipe its data. You can also find your iPhone or iPod touch.Set up Find My iPod touch for free so you can locate your device if you lose it, remotely lock the screen, or wipe its data. You can also find your iPhone or iPad. _Learn More_
    _Set up Find My iPhone_
    _Not Now_ _Set up Find My iPad_
    _Set up Find My iPod touch_
    Find My iPhone (or iPad or iPod touch) enables you to locate your iPad with Wi-Fi or iPod touch only when it is on and connected to a registered Wi-Fi network. Find My iPhone is not available in all countries. "
    The first three lines and the first paragraph are indented as if there should be some type of graphic there, but it is missing. The underlined words indicate that they are supposed to be links, but they don't go anywhere, they are broken!
    Now wheenever I connect my iPod Touch and select it the above window comes up and nomatter what I try it will not move or change.
    Please help!
    MSRankin

    Try setting up the device in a new user account. or visit register.apple.com and verify your device is registered

  • Please help me creating a new listener with different port#.

    I have two instances in a server. both have different homes. I want to create a seperate listener for the second one i created.
    But that is not happening.
    here i tried to give name from LISTENER TO LISTENER1 & Port# from 1521 to 1524.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /apps2/oracle)
    (PROGRAM = extproc)
    LISTENER1 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = aixth53)(PORT = 1524))
    When I check lsnrctl status with LISTENER1 , it still shows the other instance home with port#: 1521
    Please help me creating a new listener with different port#.
    Thanks,

    marist89 wrote:
    sb92075 wrote:
    marist89 wrote:
    sybrand_b wrote:
    The listener is a broker only and doesn't play any role in normal communications.
    It just forks a process or a thread, and that's it.And the listener is a single point of failure. Listener goes down, you can't connect to the db. That's why you need two listeners.If listener one goes down, then listener two goes down for exact same reason since it is a single executable file.I'm not playing tit-for-tat with you. Fact is, there are situations where people who are not you might want to use more than one listener.Some folks might want to jab a sharp pencil into their eye, too.
    Just because you can do something, it does not necessarily mean it should be done.

  • Help - I have a new iPad 2 which I am trying to set up?

    Help - I have a new iPad 2 which I am trying to set up.  Connected fine to my existing iTunes account and upgraded to latest software update.  Then it started saying that I had to restore it, so I tried, but it just keeps going through the motions of restoring and then telling me again that it needs to restore.  What am I doing wrong?

    Help - I have a new iPad 2 which I am trying to set up.  Connected fine to my existing iTunes account and upgraded to latest software update.  Then it started saying that I had to restore it, so I tried, but it just keeps going through the motions of restoring and then telling me again that it needs to restore.  What am I doing wrong?

  • Iam not able to use all the options in my ichat and neither is my sister can anyone help us were both new to macbooks??

    both me and my sister do not have all the options available to us on ichat and we both want to use the video chat help please were both new to the mac worlds. thanks!

    Hi,
    iChat 6 ?
    I have seen one post that suggests the the Connection Doctor (VIdeo Menu) says in the capabilities tab that the AIR will not do Multiway Video or Audio chats.
    I am not sure how true this is as iChat 4 and 5 can.
    Much earlier Mac computers such as G4 signle Processors do have this issue.  I would not have expected it with an Intel Processor.
    File Transfers can be dependent on the Port used being open in your router (As can Video and Audio chats)
    Screen Sharing requires that you use UPnP to open ports in the router (As well as turning it On in the vidoe Menu).
    If you could be more precise I could match my answers to your questions.
    It is late where I am and it will be about 20 hours before I read any reply.
    10:28 PM      Thursday; August 25, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Please help ... have new samsung ativ se windows 8 phone ... screen lock is on to require password, but on incoming calls its not locked ... how do i lock it for incoming calls too ???? thanks

    please help ... have new samsung ativ se windows 8 phone ... screen lock is on to require password, but on incoming calls its not locked ... how do i lock it for incoming calls too ???? thanks

    Personal rant, why do people write the entire problem in topic line
    It's not possible with Windows Phone 8.  What's the point, a call is coming in and the phone allows you to answer.

  • Please Help me in Assigning New Id for Different persons

    version 11g
    please Help me in assiging new person id for dirrerent persons if there middle name is different
    I listed Out Three Scenarios in the below example. Please help me out
    WITH NAMES AS(
    /* Scenario1 -- Three dirrerent people so assign Three diffrrent ID,
                      keeping 1 id as is and assign two new ids from sequence*/
    SELECT 47540310 ID , 'WO' LAST_NAME , 'ROBERT' FIRST_NAME , 'C' MIDDLE_NAME FROM DUAL UNION ALL 
    SELECT 47540310 ID , 'WO' LAST_NAME , 'ROBERT' FIRST_NAME , 'W' MIDDLE_NAME FROM DUAL  UNION ALL 
    SELECT 47540310 ID , 'WO' LAST_NAME , 'ROBERT' FIRST_NAME , 'X' MIDDLE_NAME FROM DUAL  UNION ALL 
      /* Scenario2 NULL can be equal to any value if there is only one value to equate with
        In the below case we have two values that can equate with null so assign three diffrent ids */
    SELECT 47540300 ID , 'AMATUZIO' LAST_NAME , 'ALBERT' FIRST_NAME , 'J' MIDDLE_NAME FROM DUAL UNION ALL 
      SELECT 47540300 ID , 'AMATUZIO' LAST_NAME , 'ALBERT' FIRST_NAME , NULL MIDDLE_NAME FROM DUAL  UNION ALL
    SELECT 47540300 ID , 'AMATUZIO' LAST_NAME , 'ALBERT' FIRST_NAME , 'L' MIDDLE_NAME FROM DUAL  UNION ALL
      /* Scenario3 NULL can be equal to any value if there is only one value to equate with
        In the below case we have ONE VALUE  that can equate with null so DONT ASSIGN ANY IDS*/
    SELECT 17540300 ID , 'AMARONE' LAST_NAME , 'JOSEPH' FIRST_NAME , 'J' MIDDLE_NAME FROM DUAL UNION ALL  
    SELECT 17540300 ID , 'AMARONE' LAST_NAME , 'JOSEPH' FIRST_NAME , NULL MIDDLE_NAME FROM DUAL
    Select * from names
    o/P Required
    ID    LAST_NAME    FIRST_NAME    MIDDLE_NAME
    47540310    WO      ROBERT          C
    99999990    WO      ROBERT          W                   -- New Sequence Number
    99999991     WO      ROBERT         X                   -- New Sequence Number
    47540300    AMATUZIO    ALBERT    J
    99999992    AMATUZIO    ALBERT                          -- New Sequence Number
    99999993    AMATUZIO    ALBERT    L                     -- New Sequence Number
    17540300    AMARONE    JOSEPH    J
    17540300    AMARONE    JOSEPH    Thanks
    Edited by: new learner on Jun 7, 2012 2:12 PM

    I don't understand what this line is doing:
    FIRST_VALUE (fn_get_person_id) -- sequence for the functionI have the impression that the only difference with my query is to select distinct values not to consider duplicates. Correct me if I'm wrong.
    To me this one should give the same result as your query:
    WITH NAMES AS ( /* Scenario1 -- Three dirrerent people so assign Three diffrrent ID, keeping 1 id as is and assign two
    new ids from sequence*/
                   SELECT   47540310 ID,
                            'WO' LAST_NAME,
                            'ROBERT' FIRST_NAME,
                            'C' MIDDLE_NAME
                     FROM   DUAL
                   UNION ALL
                   SELECT   47540310 ID,
                            'WO' LAST_NAME,
                            'ROBERT' FIRST_NAME,
                            'C' MIDDLE_NAME
                     FROM   DUAL
                   UNION ALL
                   SELECT   47540310 ID,
                            'WO' LAST_NAME,
                            'ROBERT' FIRST_NAME,
                            'W' MIDDLE_NAME
                     FROM   DUAL
                   UNION ALL
                   SELECT   47540310 ID,
                            'WO' LAST_NAME,
                            'ROBERT' FIRST_NAME,
                            'X' MIDDLE_NAME
                     FROM   DUAL
                   UNION ALL
                   /* Scenario2 NULL can be equal to any value if there is only one value to equate with
                     In the below case we have two values that can equate with null so assign three diffrent ids */
                   SELECT   47540300 ID,
                            'AMATUZIO' LAST_NAME,
                            'ALBERT' FIRST_NAME,
                            'J' MIDDLE_NAME
                     FROM   DUAL
                   UNION ALL
                   SELECT   47540300 ID,
                            'AMATUZIO' LAST_NAME,
                            'ALBERT' FIRST_NAME,
                            NULL MIDDLE_NAME
                     FROM   DUAL
                   UNION ALL
                   SELECT   47540300 ID,
                            'AMATUZIO' LAST_NAME,
                            'ALBERT' FIRST_NAME,
                            'L' MIDDLE_NAME
                     FROM   DUAL
                   UNION ALL
                   /* Scenario3 NULL can be equal to any value if there is only one value to equate with
                     In the below case we have ONE VALUE  that can equate with null so DONT ASSIGN ANY IDS*/
                   SELECT   17540300 ID,
                            'AMARONE' LAST_NAME,
                            'JOSEPH' FIRST_NAME,
                            'K' MIDDLE_NAME
                     FROM   DUAL
                   UNION ALL
                   SELECT   17540300 ID,
                            'AMARONE' LAST_NAME,
                            'JOSEPH' FIRST_NAME,
                            'Y' MIDDLE_NAME
                     FROM   DUAL
                   UNION ALL
                   SELECT   17540300 ID,
                            'AMARONE' LAST_NAME,
                            'JOSEPH' FIRST_NAME,
                            NULL MIDDLE_NAME
                     FROM   DUAL
                   UNION ALL
                   SELECT   17540300 ID,
                            'AMARONE' LAST_NAME,
                            'JOSEPH' FIRST_NAME,
                            'M' MIDDLE_NAME
                     FROM   DUAL
                   UNION ALL
                   SELECT   17540300 ID,
                            'AMARONE' LAST_NAME,
                            'JOSEPH' FIRST_NAME,
                            'M' MIDDLE_NAME
                     FROM   DUAL
                   UNION ALL
                   SELECT   99999999 ID,
                            'LO' LAST_NAME,
                            'CHRISTY' FIRST_NAME,
                            NULL MIDDLE_NAME
                     FROM   DUAL
                   UNION ALL
                   SELECT   99999999 ID,
                            'LO' LAST_NAME,
                            'CHRISTY' FIRST_NAME,
                            'M' MIDDLE_NAME
                     FROM   DUAL
                   UNION ALL
                   SELECT   99999999 ID,
                            'LO' LAST_NAME,
                            'CHRISTY' FIRST_NAME,
                            'M' MIDDLE_NAME
                     FROM   DUAL),
    sel_names AS (  SELECT id
                              , last_name
                              , first_name
                              , middle_name
                              , COUNT (middle_name) OVER (PARTITION BY id ORDER BY middle_name) cnt
                              , ROW_NUMBER () OVER (PARTITION BY id  ORDER BY middle_name) rown
                           FROM (SELECT DISTINCT * FROM names) -- use SELECT DISTINCT here to remove duplicates
                       ORDER BY 1, 2, 3, 4
    SELECT 8888888 new_id, id, last_name, first_name
         , middle_name
      FROM sel_names
    WHERE cnt > 1 AND rown > 1;As you can see I have only replace the the table with an inline view using SELECT DISTINCT *
                           FROM (SELECT DISTINCT * FROM names) -- use SELECT DISTINCT here to remove duplicatesFor the new id I have put a dummy value 888888, you may use a function or a sequence according to your needs.
    Regards.
    Al

  • HT1695 I NEED SOME HELP CONNECTING TO MY NEW IPAD

    yes i need some help to set my new ipad can u plz help

    http://help.apple.com/ipad/5/interface/
    Stedman

  • HT203175 I downloaded two videos from itunes into Media Go and I can't play or transfer them to my Walkman. Please help. I'm new at this and haven't a clue as to what I should do. Is Media Go the wrong place to put the videos? Thanks. Earl G.

    I downloaded two videos from itunes into Media Go and I can't play or transfer them to my Walkman. Please help. I'm new at this and haven't a clue as to what I should do. Is Media Go the wrong place to put the videos? Thanks. Earl G.

    I was able to transfer songs, but not the videos. You, too? Earl. G.

  • Help, just got a new hard drive installed and now my videos say, "a necessary data reference could not be found"

    Help, just got a new hard drive installed and now my videos in iPhoto say, "a necessary data reference could not be found"

    Not sure what happened but I was able to click on the movie, go to File then Reveal in Finder, then drag it to my desktop and then drag it back into iPhoto and it worked. 

  • Help!! Updated new version of iTunes but I can't open it

    Help!! Updated new version of iTunes but I can't open it nw. It pop up a window said: [the file "iTunes Library.it" cannot be read because it was created by a newer version of iTunes. ] what is it?Tried to remove and install old version iTunes also can't work..

    Manually download from here and install http://support.apple.com/downloads/#

  • I need help that my ipad new can't be activated

    i need help that my ipad new can't be activated

    it's ipad new 4G
    i had inserted 3G micro sim card
    trying to activate the ipad but it always message apear " couldn't connect with activation server, try again in couple of minuts "
    but nothing changed

Maybe you are looking for

  • Itunes 8 not compatible with 1st generation ipod shuffle

    I have had a **** of a time tonight trying to get my ipod shuffle working with itunes 8 and finally gave up after trying to restore it via itunes 8 which totally screwed it up because it wouldn't finish the restore so I had to unplug the ipod. Got a

  • Group Policy and Windows 8.1 questions

    I have a few group policy questions. Thanks in advance for taking a look. I've downloaded the Win 8.1/Server 2012 ADMX files. They look to  be the same file names as the Win 7 ADMX files. Can I copy them into the  PolicyDefinitions folder and still b

  • How to Change the data type of infoobject from NUMC to CHAR

    Hi Experts, I have created an infoobject with data type as NUMC, i used in DSO as a key figure and i have loaded data up to PSA. Now i want to change the data type of this Info Object from NUMC to CHAR. Can anyone suggest me the solution for this iss

  • How can I download Adobe CC Package for Windows version 1.1?

    Hi I'm the user administrator of Adobe CC for teams in a spanish company. The problem that we found is we can't download the 1.1 version of the Adobe CC Package, just because in the spanish website it's only available the 1.0. I have this link: http:

  • Why can't I open any PDF files ?

    Why can't I open any PDF files ?