Applet knowing where it runs: on host or on client

Hi, everybody!
My question might sound stupid but I could not find the answer elsewhere.
I want to set boolean in init() that tells my applet where it runs: on host machine or on client machine.
Is there method to determine it?
I am writing clock program and I want to make it so that if outside web users open it, they could play with settings as they wish and see time in all time zones, whereas guys who downloaded the applet for they own use could change the setting permanently until any future reset, because with some effort, I hope, I could manage the applet write into file and read it when initializing. Although, I dread at thought of dealing with all that sequrity issues, I suppose I have no choice: one needs to begin one time.
If there obvious horrible error in my reasoning, I would greatly appreciate your pointing out.

OK, I found it:
String host = getCodeBase().getHost();
Anyway, if you happened to have any comment and can see any serious troubles I can get into, please let me know.
Regards,
Svetlana

Similar Messages

  • Anyone know where I can get Oracle 7.3 client for windows from ?

    As per title anyone know where I can get the Oracle 7.3 client libraries from ?
    My media cabinet only holds oracle versions back to 8.1.7
    TIA,
    Mike.

    sybrand_b wrote:
    You pay the Oracle lawsuit?For using Oracle Client when Oracle currently provides Instant Client for free and allows it to be distributed with 3rd party/ISV applications? Doubt that Oracle will do that, or have a valid case - nor will it be in their best interest seeing that this is part of a migration to a later Oracle version (which means revenue for Oracle).
    790095  wrote:
    We have a customer who has a 7.3 DB still that we need to get that data out of to migrate.Is exp not available on that server platform? In which case schema exports can be done and then imported into the new database.
    If I set up a secure FTP site would anyone be able to upload an ISO of the 7.3 client disk ?I will have a look to see for that Oracle Workgroup CD (it was a "free trial" distro at the time which I picked up at the local Oracle offices). The problem however is bandwidth cap. I'm still in a part of the world where broadband means around 32Kb/s thruput and being limited to the amount of b/w one can use (I'm capped to only using 5GB per month - which is not much).
    I suggest however to log a service request with support.oracle.com - you are likely to resolve the problem much faster that way.

  • Anyone know where I can download the 10g Oracle Client?

    My LAN copy of the 10g Oracle Client was deleted a while ago. I've not needed it for a long time but now I've need for it. I see that you can't download it from Oracle any longer or if you can, I don't see where to get it off of OTN. Anyone know where I can download 10g R2 client?

    JSebastian wrote:
    My LAN copy of the 10g Oracle Client was deleted a while ago. I've not needed it for a long time but now I've need for it. I see that you can't download it from Oracle any longer or if you can, I don't see where to get it off of OTN. Anyone know where I can download 10g R2 client?Unfortunately, 10g as Sb has mentioned , is now no longer available for download. So your only way out would be to go via Support.
    Aman....

  • I just upgraded to a new computer running Windows 7 from an old one running XP. I would like to transfer all my bookmarks but I don't know where they were and where to move them to in the new computer. Thank You.

    I just upgraded to a new computer running Windows 7 from an old one running XP. I would like to migrate my old bookmarks to the new computer but I do not know where to find them or where to migrate them to.
    I do have the old computer's disk drive.
    Thank You.

    See https://support.mozilla.com/en-US/kb/Backing%20up%20and%20restoring%20bookmarks
    and
    https://support.mozilla.com/en-US/kb/Backing%20up%20your%20information?s=new+computer&r=4&as=s#os=win&browser=fx8

  • Does anyone know what is the best version of word I can have on my older mac mini 10.5.8 PPC? I am running Leopard. Does anyone have it or know where I can get it please?

    Does anyone know what is the best version of word I can have on my older mac mini 10.5.8 PPC? I am running Leopard. Does anyone have it or know where I can get it please?

    I agree with Grant. But to answer your question, that would be Word 2008. A quick search turns it up on sale at Amazon. You'll need to find it somewhere other than Microsoft itself, since MS stopped selling it when they released Word 2011.
    http://www.amazon.com/Microsoft-Office-2008-Mac-Version/dp/B000WR2F2M

  • HT1222 apple boosted of 200 improvements/changes to ios 6. I have yet to find more than 15. does anyone know where these can be found? I hate not running an os I don't want, but after hearing about ios 7, I think 6 is the lesser of 2 evils and installed i

    apple boosted of 200 improvements/changes to ios 6. I have yet to find more than 15. does anyone know where these can be found? I hate not running an os I don't want, but after hearing about ios 7, I think 6 is the lesser of 2 evils and installed it.

    FelipeV wrote:
    Nahhh...too modern; too many features....
    Yeah - it does have all those pesky holes to stick your fingers in.
    Maybe this?

  • I have very thin, colored lines running vertical on my desktop monitor screen.  I don't know where they come from or how to get rid of them.  I started with one and now have three.  Can anyone give me some insight about what to do in getting rid of them?

    I have very thin, colored lines that have shown up on my IMac monitor screen.  I don't know where they came from or how to get rid of them.  I'm concerned now because I started with one and now have three.  Does any know why this occurs or how to get rid of them?

    I got an address from Applecare, although I can't place my hand on it right now. I didn't bother persuing the letter route myself as I didn't expect much. I know that the location was Cork, Ireland though as that where the UK Applecare is based as far as I'm aware. The best thing to do is to call Applecare (if it's free) and discuss the issue. State that you are not happy wit the fact that you will have to pay to have the problem resolved especiiay if it is an ongoing problem that has not been resolved. I ended up speaking to a senior manager of the Applecare team who then proceeded to tell me about mailing in my grievence to customer services division or something like that.
    If I can find the address I may post it if I'm allowed.
    In the case of age, Schools usually have a 5-year life-cycle as they tend to be used differently than consumer machines, i.e. being used constantly on a daily basis for at least 12 hours with no break. you would expect issues to appear after a few years, but I expect problems that arise through defects to be resolved and stay resolved. As I mentioned we had machines for around 2 years before the lines appeared and sent them to be repaired. I'm happy with that. What I am unhappy about is the fact that the problem has reappeared exactly in the same way and now I'm left with around 7 machines that I either pay loads to repair or, the more likely replace the machines with newer ones since the age is now big enough to warrant the replacement.
    Sorry for the lengthy moan, but these are the reasons I purchased Apple ahrdware in the first place to avoid the "not our problem" stance some PC vendors  usually take, similar to the Dell monitors thread mentioned in here somewhere.

  • Do anyone knows where can I download oracle forms 6.0?

    hi all,
    Do anyone knows where can I download oracle forms 6.0?
    This is quite urgent.
    Please help.
    amy

    Hi all,
    I know this is no longer supported forms 6.0, however, I have an application which is running on forms 6.0 for solaris. Unfortunely, I lost the CD and I have to make some changes on this application. On the mininal changes if I can get back oracle forms 6.0 for solaris.
    Could anyone can tell me where can I download from the web site? I have been search for whole day long, but I could find any.
    Many Thanks,

  • Does anyone know where Safari might hide old security certificates?

    In a vein similar to the questions of where Safari is getting the data for the url address autocomplete, does anyone know where Safari might hide an old security certificate? Apple Care could not help me, and the their final suggestion was to reinstall Safari.
    Here is the problem: I access my work computer system through Citrix Client software, which as far as I am aware is emulating a key board to run internal applications and displaying on my screen the result. It seems as if I am inside the firewall, but really I am just looking in an open window (I am definitely not an IS person so computer savy people may be cringing at my simplistic view.) In any case, until this fall I used Safari just fine despite the fact that our IS group said that we had to use IE, and of course they do not support Macs so they will not help. Some upgrade led to the expiration of the security certificate that was stored in Keychain. And despite installing the most up to date Citrix Client software, erasing the certificate from Keychain, clearing the Safari history, cache, bookmarks, and even creating a new user, Safari keeps finding the old certificate and an error message appears that says the certificate is out of date. Our IS assures me that the old certificate is gone from wherever in the cyberworld they exist. That is further supported by the fact that I can in fact use IE just fine to access our system from the very same machine. I think the issue is similar to the ever-present url autofill information, and incidently, the autofill at Ask.com. I have noticed that clearing the history/cache/bookmarks and the cookies does not clear the Ask.com autofill with Safari.
    Does anyone know where this information might live? Any ideas as to why creating a new user would not solve the problem?
    Like others have noted, I would give up on Safari but for use with our Citrix server it provides much better window capabilities than IE. Unfortunately, Apple seems to be of no help since the people who have assisted me on more than one occasion have gone to the Safari product specialists while I have enjoyed their hold-music to no avail.
    iMac (intel) iMac (PPC) iBook (PPC)   Mac OS X (10.4.8)  

    does anyone know what the difference is
    The system battery runs the whole computer when it isn't plugged in. The backup battery only preserves PRAM.
    before i risk wiping my 'ram disk' whatever that is
    If you don't know what a RAM disk is, you don't have one to wipe. This feature enables some of the computer's RAM to be used as if it was a storage drive; it's part of Mac OS 9, but not Mac OS X without using third-party software.
    (46696)

  • I don't know where to post

    Having both a degenerative neurological condition and a large collection of Mac computers I decided I have to get rid of a lot of them and simplify my life.
    I don't know where to start or which forum to post in but I am seeking help and suggestions to many mac ownership problems and decisions.
    Multiple sclerosis seriously impedes my ability to rationalise and make decisions about many things so sorting out my extensive Apple history could be  a potential nightmare for me so I am seeking some help from Apple enthusiasts and gurus.
    I have an extensive collection of macs going back over 30 years and software to match.
    I need to rationalise my life as it's become to complicated for me to deal with.
    So where do I start front or back ?
    I have decide to keep my imac 20" G5 and my Intel imac although slightly faulty.
    I tend to archive onto other external and internal 500 gig hard discs.
    I am currently backing up my entire CD music collections via itunes and storing them as 16 bit WAV or AAIF on two computers.
    Of course it would have been easier if I had known how to do it to one hard disk and transferred and converted files for other computers.
    Do you know how long it takes to rip over 200 CDs
    I have decided to keep my one or two of G4 1.25 Ghz PPC as they have dual boot capability.
    I also have a sonnet G4 3.4 Dual upgrade and I would like to see classic zoom.
    I have decided I will get rid on my Dual Wind-tunnel as it's just to noisy.
    I will also keep my one of 9600's power macs as I also have a G4 processor upgrade but what OS ?
    I also have some serious memory chips and can fill it with 1.5 Gig if need be ?
    I am tempted to keep a pizza box Centris or Quadra or even one of the older versions.
    I also have nubus and 603e upgrades somewhere.
    I think I may only keep one of my classic type computers.
    Is it the original mac plus with external CD and HD and FDD ?
    So if someone would like to help me please say so.

    First off my page* http://www.macmaps.com/selling.html
    offers tips if you should choose to get rid of or sell certain machines.  People knowledgeable about pre-G3 Macs are here:
    https://discussions.apple.com/community/older_hardware
    and older software here:
    https://discussions.apple.com/community/older_software
    >Do you know how long it takes to rip over 200 CDs
    Average rip time is anywhere between 6 and 10 times faster than the actual run time of the CD if you are talking 192 kbps MP3.  Less time the less you have to compress.
    >I will also keep my one of 9600's power macs as I also have a G4 processor upgrade but what OS ?
    Mac OS 9.1 is the best operating system for all PowerPC Macs that have upgrade cards that have PowerPC chips.  http://www.macsales.com/ may have additional info on if a higher end operating system is available for a specific upgrade card.
    >Is it the original mac plus with external CD and HD and FDD ?
    The original Mac Plus could take an external SCSI CD and 7.5.5 according to:
    http://www.everymac.com/systems/apple/mac_classic/stats/mac_plus.html
    which suggests the internal floppy might be upgradeable to DS/DD floppy seeing as 7.1 came on larger floppy disks.  The older hardware forum mentioned above can tell you what can be done with it.  Hope that helps. 

  • Multiple problems with 80GB classic, don't know where to start.

    Hey guys,
    I got an Apple classic 80GB for my bday early August and lately i've been having so many problems i dont know where to start, i'll try to explain them as best as i can.
    *problem 1:* Whenever i plug my iPod into my PC, it locks up the system for about 5 minutes, then comes up with an error box saying that 'There is a problem with your iPod yadda yadda restore etc'.
    I proceed to restore the iPod, then once its restored and reconnects itself, it repeats the cycle by freezing then telling me to restore. The only way i can do a restore and have it not give me an error is if i reboot when it is disconnected.
    *Problem 2:* When i finally get it up and ready to sync, i go to sync all my files (About 2000 songs). It gets to around the 1500 song mark then says there is an error and the iPod disconnects itself.
    It then instantaneously reconnects itself and starts syncing from where it left off.
    Once it has then sync'd all of the music ad tells me its ready to be ejected. I eject the iPod and disconnected it.
    I then go into the iPod and it has no songs/videos/photos, yet it has still used up about 15gb. If i reconnect it, it will just sit there for 5 minutes not syncing, it will then randomly say the sync is done and it will eject itself.
    FINALLY after all that i have my music on there
    *Problem 3* Once the songs are on the iPod, it becomes insanely laggy. If i navigate to a song and press play, it will take about 10 seconds for the actual song to play. The delay is just as bad for next song, pause etc. Even using it in my cars head unit causes it to lag.
    *Problem 4* If i do get a song playing after all that, about 1/5 songs will just randomly skip to the next song without letting it play through.
    I have all the latest iTunes/Firmware/Drivers for everything on my PC and iPod.
    I have sent it back to Apple for repair yet they could not find anything wrong (Yeah right :|)
    If anyone out there could help me please, im at my wits end with this infernal machine.
    Thankyou

    *Outdated operating system:* Cant be, im running XP SP3 with the latest updates
    *Computer needs updates:* I've got the latest drivers for all of my hardware, including BIOS
    *Software interference:* THe only other program i have running in the background is Kaspersky Antivirus, but that is disabled when i try to sync
    *Damaged Files* Possibly, i played through the album where it froze at and even reo-imported it, it seemed to play and import fine
    *Unregistered .dll files (Windows):* Tried this fix, but it did the same problems as the original post. Such as freezing on a certain song, then reconnecting itself only to put the music on there, yet it is really laggy
    *Damaged disk structure:* Tried this fix, didn't help
    *Corrupt iPod photo Cache* I have never tried to put photos on it, so i dont see how this could be it.
    *Lost connection:* Checked it, it's very firm and unlikely to come loose.
    *Conflict with third-party hardware:* I dont have any connected, nor have i ever
    *Bad hardware:* I tried it on all of my 8 USB drives. I dont use any hubs or firewire cards so this couldn't be it.
    Also i forgot to add that 1/5 times i go to restore, it locks the computer up and windows gives me a 'delayed write failed' bubble

  • I received a message on my iPhone 4 that has a video attached to it. I "saved video" but don't know where. How do I find it and send it to mi MacBook Air?

    I received a message on my iPhone 4 that has a video attached to it. I "saved video" but don't know where. How do I find it and send it to mi MacBook Air?

    It would have saved to your camera roll.  Connect the phone to your Air via a USB cable and then run Image Capture which is located either in your Utilities folder or Other folder, depending on what version of Mac OS X your are running.  You will then see all the photos and videos stored on your iPhone and can then download them.

  • Sorry but i have a problem my IPAD has been stolen and i want help to know where is the place of it ? can i send the serial number or anything i want help to know the place of my IPAD and thanks  My name is :- Osama Rezk   I'm From :- Egypt

    Sorry but i have a problem my IPAD has been stolen and i want help to know where is the place of it ? can i send the serial number or anything i want help to know the place of my IPAD and thanks My name is :- Osama Rezk I'm From :- Egypt my icloud ID
    <Email Edited by Host>

    You will only be able to track your iPad if you have find my iPhone active and the iPad is connected to a network.
    Take a look at this link, http://support.apple.com/kb/PH2580

  • HT1923 When I try to uninstall iTunes I get a message saying iTunes 64 msi can not be located and I should enter an alternate path. How would I know where it it is? I get the same message when trying to install the update to iTunes 10.6.1.

    When I try to uninstall iTunes I get a message saying iTunes 64 msi can not be located and I should enter an alternate path. How would I know where it it is? I get the same message when trying to install the update to iTunes 10.6.1.

    Download the Windows Installer CleanUp utility from the following page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    To install the utility, doubleclick the msicuu2.exe file you downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Don't know where two commands go .... Need Help!

    I have three files: ExpressionConverter.java, postfix.java and postfix2.java.
    ExpressionConverter is the base file that sets up the frame which has four fields InfixField (The user types in a math formula like 5*(2+1)), PrefixField (Another file, prefix.java-which I am still tweaking, will review the characters in the InfixField and transform them into a prefix format like *5+21), PostfixField (the postfix.java file will review the InfixField characters and transform them into a postfix format like 21+5*) and ResultField (the postfix2.java file will review the created PostfixField stack and generate the actual formula's result like 15).
    The ExpressionConverter.java file works right now, but it includes a postfix formula that is incorrect (it messes up when parenthesis are used) and the prefix and result fields do not have anything associated with them, so they are blank; however, you can run this program and see the general idea of how I want it to work.
    ****THIS IS WHAT I NEED!*****
    I have been told that the postfix.java file and the postfix2.java file need to have "PostfixField.setText(findPostfix(InfixFieln.getText()));" and "ResultField.setText(calculatePostfix(PostfixFiels.getText()));" placed in my ExpressionConverter.java file for the whole thing to work - minus the Prefix formula. I need to know where they go and how I can delete the postfix formula out of the ExpressionConverter.java file so I can use the formula in postfix.java without causing errors.
    I KEEP RESEARCHING BOOKS AND INTERNET, BUT CAN'T FIGURE IT OUT.
    Here are the codes - with a lot of spaces between them to differentiate them. Thanks for the help!
    ExpressionConverter.java
    package ExpressionConverter;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2002</p>
    * <p>Company: </p>
    * @author unascribed
    * @version 1.0
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ExpressionConverter
    public static void main(String args[])
    Frame f = new TheFrame();
    f.show();
    class TheFrame extends Frame implements TextListener {
    //Here are the textfields that input and output the expressions
    TextField InfixField = new TextField("0", 15),
    PrefixField = new TextField("0", 15),
    PostfixField = new TextField("0", 15),
    ResultField = new TextField("0", 15);
    int Infix;
    int Prefix;
    int Postfix;
    int Result;
    public Frame Example;
    char StackArray[];
    Button stack[];
    int i = 9;
    int j = 0;
    int StackPointer;
    int k = 0;
    char Operation = '0';
    int ExpressionLength;
    public String Answer;
    public TheFrame()
    setTitle("Infix Conversion Calculation");
    setLayout(new GridLayout(4,2));
    //Labels for the textfields
    Label InfixLabel = new Label("Infix Original Formula"),
    PrefixLabel = new Label("Prefix Calculated Formula"),
    PostfixLabel = new Label("Postfix Calculated Formula"),
    ResultLabel = new Label("Calculated Result");
    Panel InfixLabelPanel = new Panel(new FlowLayout(FlowLayout.RIGHT)),
    PrefixLabelPanel = new Panel(new FlowLayout(FlowLayout.RIGHT)),
    PostfixLabelPanel = new Panel(new FlowLayout(FlowLayout.RIGHT)),
    ResultLabelPanel = new Panel(new FlowLayout(FlowLayout.RIGHT));
    Panel InfixFieldPanel = new Panel(new FlowLayout(FlowLayout.LEFT)),
    PrefixFieldPanel = new Panel(new FlowLayout(FlowLayout.LEFT)),
    PostfixFieldPanel = new Panel(new FlowLayout(FlowLayout.LEFT)),
    ResultFieldPanel = new Panel(new FlowLayout(FlowLayout.LEFT));
    InfixLabelPanel.add(InfixLabel);
    InfixFieldPanel.add(InfixField);
    PrefixLabelPanel.add(PrefixLabel);
    PrefixFieldPanel.add(PrefixField);
    PostfixLabelPanel.add(PostfixLabel);
    PostfixFieldPanel.add(PostfixField);
    ResultLabelPanel.add(ResultLabel);
    ResultFieldPanel.add(ResultField);
    add(InfixLabelPanel);
    add(InfixFieldPanel);
    add(PrefixLabelPanel);
    add(PrefixFieldPanel);
    add(PostfixLabelPanel);
    add(PostfixFieldPanel);
    add(ResultLabelPanel);
    add(ResultFieldPanel);
    InfixField.addTextListener(this);
    addWindowListener(new TheAdapter(this));
    addWindowListener(new TheAdapter(this));
    addWindowListener(new TheAdapter(this));
    pack();
    show();
    public void textValueChanged (TextEvent e)
    Object source=e.getSource();
    if (source == InfixField)
    try
    String Expression = InfixField.getText();
    //This stores the length of the expression
    ExpressionLength = Expression.length();
    //This converts the Expression into seperate characters stored in a char[]
    StackArray = Expression.toCharArray();
    //This finds the * and / operations and if they are * or / then
    //it switches the values in the array into postfix form, if not,
    //it leaves them the same
    for (int i = 1; i < ExpressionLength; i++)
    if (StackArray[i] == '(' || StackArray[i] ==')')
    char temp = StackArray;
    StackArray[i] = StackArray[i+1];
    StackArray[i+1] = temp;
    i++;
    else if (StackArray[i] == '/' || StackArray[i] =='*')
    char temp = StackArray[i];
    StackArray[i] = StackArray[i+1];
    StackArray[i+1] = temp;
    i++;
    //This method does the + and - conversion after the / * is completed.
    //it moves through the STackArray and moves the operation into Operation
    //then moves through each element shuffling left until encountering another
    //+ - when it then deposites the old operation and picks up hte new one
    // and continues shuffling left until hte end of the expression.
    Operation = '0';
    for (StackPointer = 0; StackPointer < ExpressionLength - 1; StackPointer++)
    int NextPointer = StackPointer + 1;
    if (StackArray[StackPointer] == '+' || StackArray[StackPointer] == '-')
    while (StackPointer < ExpressionLength -1 && StackArray[NextPointer] != '+' &&
    StackPointer < ExpressionLength-1 && StackArray[NextPointer] != '-')
    Operation = StackArray[StackPointer];
    StackArray[StackPointer] = StackArray[NextPointer];
    StackArray[NextPointer] = Operation;
    StackPointer++;
    NextPointer++;
    int Temp = Operation;
    Operation = StackArray[StackPointer];
    //This converts answer back to a string value and outputs the answer
    String Answer = new String(StackArray);
    PostfixField.setText(Answer);
    catch (NumberFormatException ex) {}
    class TheAdapter extends WindowAdapter {
    Frame TheFrame;
    TheAdapter(Frame f) {
    super();
    TheFrame = f;
    //public void windowClosing(WindowEvent e)
    // TheFrame.dispose();
    public void windowClosing(WindowEvent event) {
    System.out.println();
    this.setVisible(false);
    dispose();
    System.out.println();
    System.exit(0);
    postfix.java file
    package ExpressionConverter;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2002</p>
    * <p>Company: </p>
    * @author unascribed
    * @version 1.0
    import java.util.Vector;
    public class postfix
    public static void main(String args[])
    new findPostfix(args[0]);
    class findPostfix
    Vector stack=new Vector();
    String postfix="";
    public String findPostfix(String ex)
    String exp=ex;
    int explength=exp.length();
    for (int i=0;i<explength;i++)
    if (isDigit(exp.charAt(i)))
    postfix+=exp.charAt(i);
    else
    checkOperator(exp.charAt(i));
    int s=stack.size();
    for (int j=0;j<s;j++)
    postfix+=((Character)stack.lastElement()).charValue();
    System.out.println(postfix);
    stack.removeElementAt(stack.size()-1);
    return postfix;
    public void checkOperator(char op)
    if (isParenthesis(op)==1)
    stack.add(new Character(op));
    else if (isParenthesis(op)==2)
    int s=stack.size();
    for (int j=0;j<s;j++)
    if (((Character)stack.lastElement()).charValue()=='(')
    stack.removeElementAt(stack.size()-1);
    break;
    postfix+=((Character)stack.lastElement()).charValue();
    System.out.println(postfix);
    stack.removeElementAt(stack.size()-1);
    else if (stack.size()!=0)
    if (hasPriority(((Character)stack.lastElement()).charValue(),op))
    stack.add(new Character(op));
    else
    postfix+=((Character)stack.lastElement()).charValue();
    System.out.println(postfix);
    stack.removeElementAt(stack.size()-1);
    checkOperator(op);
    else
    stack.add(new Character(op));
    public boolean hasPriority(char c1,char c2)
    //c2 has higher priority than c1
    if (c1=='(')
    return true;
    else if ((c1=='+'||c1=='-')&&(c2=='*'||c2=='/'))
    return true;
    else
    return false;
    public boolean isDigit(char c)
    if (c=='0'||c=='1'||c=='2'||c=='3'||c=='4'||c=='5'||c=='6'||c=='7'||c=='8'||c=='9')
    return true;
    return false;
    public int isParenthesis(char c)
    if (c=='(')
    return 1;
    else if (c==')')
    return 2;
    else return 0;
    postfix2.java
    package ExpressionConverter;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2002</p>
    * <p>Company: </p>
    * @author unascribed
    * @version 1.0
    import java.util.Vector;
    public class postfix2
    public static void main(String args[])
    new calculatePostfix(args[0]);
    class calculatePostfix
    Vector stack2=new Vector();
    public calculatePostfix(String postfix)
    int size=postfix.length();
    stack2.add(new Integer((int)postfix.charAt(0)-48));
    Integer tmp;
    for (int i=1;i<size;i++)
    if (isDigit(postfix.charAt(i)))
    stack2.add(new Integer((int)postfix.charAt(i)-48));
    else
    tmp= new Integer(calculate( (Integer)stack2.elementAt(stack2.size()-1),(Integer)stack2.elementAt(stack2.size()-2),postfix.charAt(i)));
    stack2.removeElementAt(stack.size()-1);
    stack2.removeElementAt(stack.size()-1);
    stack2.add(tmp);
    return (string)stack2.elementAt(0);
    public int calculate(Integer cc1,Integer cc2,char op)
    int c1=cc1.intValue();
    int c2=cc2.intValue();
    if (op=='+')
    return (c1+c2);
    else if (op=='-')
    return (c1-c2);
    else if (op=='*')
    return (c1*c2);
    else
    return (c1/c2);
    public boolean isDigit(char c)
    if (c=='0'||c=='1'||c=='2'||c=='3'||c=='4'||c=='5'||c=='6'||c=='7'||c=='8'||c=='9')
    return true;
    return false;

    Try user folder/Movies.

Maybe you are looking for