Can this be done without "package" and what is it exactly?

package Palindrome;
import java.io.*;
public class Palindrome
BufferedReader reader = new BufferedReader
          (new InputStreamReader(System.in));
private String Sparkle;
     private int length;
public String buffPal(String userInput)
length = userInput.length();
StringBuffer mann = new StringBuffer(length);
for(int i = (length - 1); i >= 0; i--)
mann.append(userInput.charAt(i));
Sparkle = mann.toString();
if (Sparkle.equalsIgnoreCase(userInput))
return userInput + " is a Palindrome";
return userInput + " isn't a Palindrome";
package Palindrome;
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class PalindromeApplet extends Applet implements ActionListener
private TextField InputField = new TextField(20);
private TextField AnswerField = new TextField(26);
private Label prompt = new Label ("Input to test for Palindrom:");
private Button button = new Button("Test");
     private Label res = new Label ("Result...");
     private Palindrome test = new Palindrome();
public void init()
add(prompt);
add(InputField);
          add(button);
add(res);
add(AnswerField);
button.addActionListener(this);
setSize(225, 160);
public void actionPerformed(ActionEvent e)
String userInput = InputField.getText();
String result = "null";
if(e.getSource() == button)
result = test.buffPal(userInput);
AnswerField.setText(result);

You can place your classes in the unnamed package by omitting the package declaration, but that's still a package.
A package is a namespace for types (classes & interfaces). Namespaces keep names from colliding. So you could have Palindrome.Palindrome and org.rhythmshocker.Palindrome in the same program and be able to reference each uniquely.

Similar Messages

  • Adobe Bridge has been deleted and needs to be re-installed. How can this be done without reinstallin

    Adobe Bridge has been deleted and needs to be re-installed. How can this be done without reinstalling the entire CS5

    Hi RDMDanielM,
    Welcome to the Community!
    We cannot install Adobe Bridge as a Standalone product, you can just reinstall Photoshop and Bridge will be reinstalled with it. Go ahead and start uninstalling CS5 suite but choose Photoshop from the list and the same will be applicable while Installation.
    Thanks!
    Ankit

  • Hi. I have bought both Adobe XI Pro and standard and downloaded only one of them yet. How do i proced to download the other? Can this be done without install or perticipate within Creative Cloud, only by using username and PW?

    Hi.
    I have bought both Adobe XI Pro and standard and downloaded only one of them yet.
    How do i proced to download the other?
    Can this be done without install or perticipate within Creative Cloud, only by using username and PW?

    I assume you have the S/Ns. The download is at http://helpx.adobe.com/acrobat/kb/acrobat-downloads.html. Be sure to backup the download to CD or backup HD for future use.

  • I would like to load my purchased music from my iphone to itune library then to my ipod shuffle can this be done without aditional cost

    I would like to load my purchased music from my iphone to itune library then to my ipod shuffle can this be done without aditional cost

    Sure
    File>Transfer Purchases

  • I'm trying to crop individual frames. Can this be done without the crop being applied to the entire clip? Using imovie 11

    I'm trying to crop individual frames. Can this be done without the crop being applied to the entire clip? Using imovie 11

    use the cmd-B(lade) command to split your single clip into individual ones

  • Want to give my old IPOD to husband but how do we share music etc - he wants different music and apps to me how can this be done without me deleting my stuff?

    Oooppss! Put the whole question in the title bar!
    What I would like to know is how do I get to keep my stuff different from my husbands, there are things that we both like and things that we don't. I dont want him to delete off my old IPOD if it means i have to keep installing again. I dont want to set up a new account because we want to share music and videos

    You'll notice that each iPad is identified by name.  See image below.  Highlight the appropriate iPad and configure iTunes the way that you wish.  The second image below is an example for apps.  You'll see something similar for movies, TV shows, etc.
    The only minor problem is app updating.  IF you choose to do it from inside iTunes, it's a minor nuisance.  Each app is permanently associated with whatever Apple ID was originally used to obtain it.  If you're logged in to the wrong ID, you'll need to log out and back in again.  On the bright side, if you update from the iPad, all you need is the password for the correct ID.  The iPad takes care of the rest.
    Mail is a special case.  I use Mac Mail and the setup is pretty much automatic.  What are you using?

  • Hi Gang! Ive just bought a computer and I want to sync all my music from my Iphone to the itunes I've just intalled on it. Can this be done without losing all the songs? no way am I paying for them all again! Thank you

    Hi Gang! Is there any way of getting my songs from my Iphone to my new computer just by syncing rather then having to pay for them all again?? thank you

    Hey baby birch
    You are able to sync purchased content from your iDevice to a new computer as long as the comptuer is authorized
    To authorize the computer follow these steps
    At the topi of the screen next to File- Edit -View, click store then Authorize this computer.
    Enter in your appleID email address and password and click authorize
    **If you do not see the File Edit View option, At the very top left corner you should see a little square click the square and click show menu bar.
    Now that your computer is authorized click the file menu button, then click Devices, then go to your iPhones name and then click Transfer purchases this will allow you to transfer all of your purchased content to the computer
    Now if you want to transfer your non purchased content to the computer you can do so if you have wif and the previous computer on the same network as the new computer with home sharing
    Understaning home sharing - http://support.apple.com/kb/HT3819
    Setting up Home sharing - http://support.apple.com/kb/HT4620

  • Can this be done with LR4 and Drobo FS?

    When I import pictures on my MacBook Pro running Lion OS  at home into LR4, I set it up to backup onto my Drobo FS which is a NAS device wirelessly via my home network.
    Not being computer saavy at all, can I set up both my Drobo and configure LR4 on my MBP so when I am on vacation with the laptop, I can back up my vacation pics directly to the Drobo rather than carrying an additional external back up drive?
    I've heard about Drobo apps, specifically Pure ftd, downloaded it and looked at the documentation but it might as well be written in Martian. Is this the way to go or is there another software program?  I think pure ftd enables one to access your device, in this case, the Drobo, via the Internet. As I don't know anything about programming, I am completely lost when reading various forum threads about the set up. 

    Yes, that is exactly the problem with all cloud services for photo backup: how much volume do you shoot per day? What is the upload bandwidth you may count on?
    I dropped any such notion, because with a daily volume of 3-6GB raw images all the hours of the night would not be sufficient to upload this via the usual ADSL-lines in Europe.
    Directly within LR you can use any setup that you can select in the import dialog as storage destination for "make a second copy to".
    E.g. If you can map your drobo as a drive.
    If not, you could still use the ftp-mechanism to trigger the upload outside LR, after copying the images from your camera card.
    But as said, all depending if your volume will make the upload during the time available at your bandwidth.
    Cornelia

  • Can this be done without frames?

    Hi there,
    I am trying to create a page that needs to open an outside
    site (our
    supplier's site -
    http://www.thecorporatechoice.com/
    ) in the main frame and
    then put navigation buttons and our contact info on the top
    of the page
    (which would be from my server).
    I have a diagram of what I want to do at
    http://www.granvillesigns.com/framesquestion.jpg
    If I could, I would like to be able to swap outside
    suppliers' sites - as I
    have two primary suppliers.
    Is there a way to accomplish this without using frames (a
    table maybe)? I
    have Dreamweaver 8.
    Thanks loads

    > Is there a way to accomplish this without using frames
    (a table maybe)? I
    > have Dreamweaver 8.
    No. Furthermore, when you bring in the outside site, you
    bring in their
    navigation too, something that is certain to flummox your
    visitors.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "peter" <[email protected]> wrote in message
    news:egufce$432$[email protected]..
    > Hi there,
    > I am trying to create a page that needs to open an
    outside site (our
    > supplier's site -
    http://www.thecorporatechoice.com/
    ) in the main frame
    > and
    > then put navigation buttons and our contact info on the
    top of the page
    > (which would be from my server).
    >
    > I have a diagram of what I want to do at
    >
    http://www.granvillesigns.com/framesquestion.jpg
    >
    > If I could, I would like to be able to swap outside
    suppliers' sites - as
    > I
    > have two primary suppliers.
    >
    > Is there a way to accomplish this without using frames
    (a table maybe)? I
    > have Dreamweaver 8.
    >
    > Thanks loads
    >
    >

  • An updated favicon is not visible also after a page reload! How can this be done without deleting the full browser cache?

    I updated the favicon on a homepage.
    I reloaded the page in firefox but the old favicon remains.
    I do not want to delete the whole cache of the browser. A page reload should be enough because other users will not delete the cache to get the new favicon.

    Did you try a reload with a cache bypass?
    You can reload the page and bypass the cache with:
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)
    See [[Keyboard shortcuts]] and [[Mouse shortcuts]]
    If you have bookmarked that site then try to remove all bookmarks (open the bookmarks in tabs, click the yellow star and click the Remove button). Then try to reload all pages and create new bookmarks if that works. You may need to close and restart Firefox. You can also use Forget About This Site in the History right-click context menu but that will remove everything relating to that site, including saved passwords and exceptions.

  • I am loaning my Ipod touch 4 to my granddaughter but dont want her t see my messages but still allow her to send messages. Can this be done without deleting the entire acct ?

    How can I allow my granddaughter to use my ipod touch without seeing all of my meesages when I message on my iphone4 ?

    Go to Settings>Messages>Send and Receive and add a new email address for her. Then in same place uncheck your phone number and email address. Als delete any Messages already on the iPod. Then go to Settings>General>Restrictions and turn on the Restrictions that prevent changing accounts.
    iOS: Understanding Restrictions (Parental Controls)

  • Can this be done without loop?

    Oracle version: 10GR2
    We would like to INSERT the records fetched by the below SELECT into ORDER_TRACK_DTL table.
    ORDER_TRACK_DTL's primary key =====> order_id, order_item
    The SELECT from sku_dtl can return duplicates (order_id, order_item). The developer has created a loop to do this INSERT because he doesn't want the entire INSERT to error out because of one duplicate record.
    Is there any way we could avoid this loop and write this using normal SQL?
    begin
    select order_id ,order_item  bulk collect into v_order_id, v_order_item               
                   from SKU_DTL
                   where .......;
    for i in 1..v_order_id.count
      loop
    begin
    insert into order_track_dtl(order_id,order_item,create_dt)
    values
    v_order_id(i),
    v_order_item(i),
    sysdate);
    exception 
    when dup_val_on_index
    then
    end loop;

    In case if you need a demo!
    SQL> CREATE TABLE test_dbms_error_log1(col1 INTEGER);
    Table created.
    SQL> SELECT * FROM test_dbms_error_log1;
          COL1
             1
             2
             3
             3
             3
             2
             1
    7 rows selected.
    SQL> CREATE TABLE test_dbms_error_log2(col1 INTEGER primary key);
    Table created.
    SQL> BEGIN
      2  DBMS_ERRLOG.create_error_log(dml_table_name =>'TEST_DBMS_ERROR_LOG2');
      3  END;
      4  /
    PL/SQL procedure successfully completed.
    SQL> INSERT INTO TEST_DBMS_ERROR_LOG2 SELECT * FROM TEST_DBMS_ERROR_LOG1
      2  LOG ERRORS REJECT LIMIT UNLIMITED;
    3 rows created.
    SQL> SELECT * FROM test_dbms_error_log2;
          COL1
             1
             2
             3
    SQL> select * from err$_TEST_DBMS_ERROR_LOG2;

  • Can this be done with extendScript and ScriptUI ...

    Is there a way to programmatically stop execution of a script so that a user could make edits to a PSD then resume execution of the script at the point the script was halted?

    I’m not totally sure, but I suspect what you have in mind is not practicable.
    Why not just split the Script in two?
    It should certainly be possible to insert a confirm-dialog in a Script and have the Script continue only on confirm and stop on cancel.
    The Scripts could store the information that the Script has been cancelled in a txt-file and have it elaluate the txt-file and only run a certain part depending on that, but it seems cumbersome.
    What exactly is this about?

  • Can this be done without DVDAE?

    we have a client that is very adamant that the rootmenu button on the remote goes to different locations depending on which menu you press it from.
    My question, If I do manual VTS allocation, does DVD studio automatically assign the first menu asset in every VTS as the root menu.
    I imagine I could write a fairly tedious script that would keep track of the current menu and then jump to a different menu depending on the current menu, then assign this to the menu button behavior for the disc.
    Also, does anybody know of some good resources for learning DVDAE besides their website.
    thanks,
    ryan
    Power Mac G5 dual 2ghz   Mac OS X (10.4.2)  

    Hi Ryan,
    I have been a DVDAE user for quite some years. I assume you have downloaded the manual? Unfortunately I have found no directly attributable resources to DVDAE, except by acquiring direct knowledge of the DVD Spec. There is an "Unoffical DVD Spec" (real one costs $US5000) book available to download, as well as many of the DVD forums dealing with the DVD spec ie Tully list.
    With respect to DVSP. It's a fairly simple matter to adjust your rootmenu, but yes it does require you do an nominal amount of scripting to keep track of your menu location and then assigning an additional script to the "Title" for the remote control.
    Good Luck

  • Can this be done with Drag and Drop?

    I have a tile list with jpeg thumbnails of illustrator files.
    When clicked they are downloaded and opened.
    Is it possible for me to implement a situation where the user can drag the jpeg to adobe illustrator, and the file will download and open.
    Basically the same operations as clicking on the image.
    Any help is appreciated

    This article might be useful: http://coenraets.org/blog/2007/06/air-to-desktop-drag-and-drop-two-simple-utility-classes/

Maybe you are looking for

  • Non-valuated Goods Receipt for Purch.Order Item with multiple acct assgnt

    Dears, i used multiple account assignment functionality based on percentage for purchase order item and the system forced the goods receipt as "Non-valuated Goods receipt". In this way i don't have FI-CO documents at Goods receipt; i got them only at

  • Dynamic URL for Recv HTTP (Adapter spec attribute enabled)

    Hi, I need to have a dynamic URL for one of my cases been worked. the URL is httlp://:<host>/perform/XTA?serv=*&action=start the event "action" can accept either start/stop or restart. i wanna to control this dynamically and went for recv http enable

  • Problem with doing Cleansw

    I can't find the CTZAPXX.EXE program on my cd. (I have SBLi've! Value) So I looked in my Programs files and found it. But it wouldn't run and clicking it with the mouse restarted my computer. Then I found this CTUninstal. This is what popped up: <IMG

  • How do I recover a folder that has been deleted?

    Last night I was burning a backup disc with some important files. The disc was corrupt so it didn't burn. The computer then had an alert that said Media was unreliable. Then when I went to close out of the window it said a newer file called documents

  • Child groups disappear when moving new region container

    ADF Business Components 10.1.3.42.70 JHeadstart 10.1.3.3.81 all, here are the steps to reproduce: 1. create 2 new region containers(named first and second) in you app def 2. create a child object to the first container such as another region containe