SELF MADE FUNCTIONS

Why is it not running?, tried everything... guess i missed the poing, please help:
public class FUNCTIONS{
     public static double max(double dx,double dy){
          if(dx<dy) return dy;
          else return dx;
     public static void main (String[] args) {
          double dx1,dx2,dx3;
          dx1=1;
          dx2=0;
          dx3=-1.8;
          System.out.println(max(dx1,max(dx2,dx3)));
}

mikmik85 wrote:
What?
how can that be?
i closed the "JCreator" after i posted the message
now i've reopened it to bring the error code... was something about "max" ... but now it's working...
DIDNT CHANGE THE CODE!
might be a bug in JCreator (is it something known with declaring functions?)..Doubt it. It's like a bug in your code or understanding, not the IDE. Maybe you made a change, didn't save it, and then compiled an earlier version by mistake.
%

Similar Messages

  • Fade in and Fade out components from 3d modell onClick self-made buttons

    Hi,
    in Acrobat Pro you can place your own 3D-model into the pdf. Than you can fade in and fade out components of your 3d-model on a acrobat-menü (see images) in the pdf-reader. Now I want to build a pdf with this functionality, but the tricky thing is, that I want to fade in and out the components from the 3d-model not on the menu, but on self-made buttons.
    But how to say the buttons, that they should fade in or fade out a component from the 3d model, like it the menu from acrobat does?
    Thank you for reply.
    Maybe this images will help you to understand my question:

    Thank you very much for your answer. But I think what you mean, is to make a full object visible=false. But what I want to make is to fade out a subordinate level.
    So for example this is my hierarchy:
    layer one
    -sub-layer one
    -sub-layer two
       *sub-sub-layer one
    layer two
    -sub-layer one
    And now I want to fade out the sub-sub-layer one. What is the code for that?
    Thank you very much again!

  • Self made portal can not open reports in same frame

    i was making a self made portal using BusinessObjects Enterprise Java SDK, there is a html page showing the reports, the left frame is a tree, when clicking the item, it will show the report in the right frame.
      But the problem is when i click the second report in the tree, it will appear in the new  tab. i have tested  in chrome, ie, Firefox.
    i  have a  function getting  the open document url which  is below :
      <%!
    //return the open document url by Docid
    String opendocUrl(int id, String token){
         return ( "http://huangli:8080/OpenDocument/opendoc/openDocument.jsp?iDocID=" +
                   id + "&token=" + token);
    I don't  understand why  it  works  well when i click the first report ,but not working if i click the second report !
    thanks a million i am looking forward to your reply!

    function clickOnLink(clickedId, target, windowName) {
        highlightObjLink(findObj(clickedId));
        if (isLinked(target)) {
            window.open(target,windowName);
    this is the JavaScript code when i click the node .i have tested in IE,chrome ,FF. the target parameters is the frame name Windowsname is the URL of the report .i cannot see anything wrong .

  • How to use an self-made iView in the Portal Content?

    Hi everybody,
    I followed the instructions to set up a Portal (6.0 SP 2) with the PDK. Now I just wrote a simple "Hello-World" iView and deployed it into the portal server. It worked fine when I clicked to test it in the Java Development Inspector.
    But...
    In the Portal Content I can not find my self-made iView? How do I get it there? I coudn't find any documentation.
    I'd appreciate your help!

    In the portal content try to create a new Iview and select the option (create new iview from portal Archive).
    After selecting that you will see all the PARs deployed on your server, just select yours and follow on.
    Hope that helps.
    Thanks
    Ankur

  • How to do a complete cleanup in the repository of a self-made plugin ?

    Hi *,
    How to remove a self made Plug-In from repository ?
    I have got the ARE review and we suppose that this is not supported. Anyway, please try to answer that question and there are two related SR's (7446566.993, 7370886.993) and one Bug is open for that issue.
    Screen prints and the xml file with metric definition are available at GTCR for SR 7446566.993.
    Thanks,
    Torsten

    Hello Torsten,
    "...If we try to re install it after, we still have status down while it is up in reality...."
    As per my understanding of EM, everything is based on TargetGUID, which is a combination of target-name and target-type. Based on this, you may like to give a different target-name and give it a try. (I believe, the reason things work fine is also as explained above. With a different target-type name, the TargetGUID is changed and hence, the behaviour)
    However, both the approaches (a new target-name and/or new target-type name) are not ideal in nature. Check the AVAILABILITY & ALERT tables (don't remember the exact table name(s), though). One of these table holds the status value for targets (and the value is a number - a while back I had investigated on this but am not having the info handy) and the information on alert generated.
    You may also like to clear agent STATEs. Agent maintains state of each metric (& target). Try following:
    1. Stop EM Agent (this is not necessary though)
    2. Execute "emctl clearstate agent" on agent system.
    3. Delete all files under emd/state, emd/recv and emd/upload
    4. Restart the agent (if step 1 was executed)
    5. Check the behaviour of the target status now on target home page
    Hope it helps !
    Regards,
    -Shant

  • Blink a self made button

    Hi all,
    How to make a self-made button/control blink ?
    Thank you very much for reply

    Jeff Bohrer wrote:  This snippet shows two methods to make a control blink- one in the IDE blink colors one that is adjustable
    It's a good thing that you mentionned that you were showing2 methods..
    After a quick glance at your diagram I went... !What?!  Oh..  okay..  (as I saw the next line..)
    It's a good example of the two methods.  
    The most common (usual) approach is the property node.

  • Adding self made Xcelsius dashboards to the cockpit in B1 8.8 PL

    Hello,
    How can I add self made Xcelsius dashboards to the cockpit in SAP Business One 8.8 PL12?
    Thanks.

    Hi,
    1) Create your Xcelsius file
    2) Save as SWF (File->Export >SWF)
    3)Open Black Crystal Report and link that SWF file
    4)Save that Crystal report
    5)Import that crystal report by Admin > Setup > general > Report and Layout manager
    6)Save particular location
    now Drag and Drop Crystal report  to your cockpit
    That how i Have link my Xcesius Report
    Thanks
    King Kevin

  • Make self defined function on ALV toolbar invisible

    Hello Experts,
    I have defined a self defined function dropdown on standard ALV toolbar on the Lead select event  and defined the function too.
    But I want at some condition the dropdown should disappear. How can I set the drop down on the ALV toolbar to invisible.
    Please suggest.
    Thanks and Best Regards,
    Sahil

    While defining the drop down, just bind the visible property to a context node attribute of type WDUI_VISIBILITY and set it based on your requirement.
    Manas Dua

  • I cant get my self made application in Iphone.

    I have a little problem with my self made Iphone application. I'm using mac 10.6.8. Snow Leopard, Xcode 4.2 and my Iphone is version 6.0.1. I read forums and there people said that I cant get that application in my phone. I should upgrade my laptop but its not possible because that laptop is old and not that good..
    So what should I do? I'd like to test that app before sending it into appstore but if its not possible can I send it anyway??
    This is my first app ever.

    Should put your question in the developer forums.
    https://discussions.apple.com/community/developer_forums

  • TS1424 i purchased a album in itunes and was not aware that it was editied and would like to know if its possible to have it reversed so that i can get the explicited deluxe copy album was self made vol 2

    i purchased a album on itunes off of my phone self made vol2 was not aware that it was editied because it didnt state it in the album name and then realized it said it on the album cover would like to know if there is anyway to have that reveresed so that i can have the explicit verison it was also the deluxe edition

    Unfortunately there are not refunds.
    Apple states that all sales are final.

  • DVD-writer disappears by playing a self-made DVD-RW

    HELP!
    Yesterday I inserted a self-made DVD-RW in order to watch it again. Suddenly it stops playing and I cannot get the DVD-RW out of my Imac anymore!
    Moreover, when I check my system information again now, it doesn't even recognize my DVD-burner (nor CD writer) anymore. It is as if this DVD "ate" my DVD-writer.
    So my DVD is lost (it is in my machine and there is no way getting it out) and my disc burner has disappeared. None of the programs with which I used to burn CD's or DVD's, recognizes a disc writer anymore!
    Can anyone help? I thought of downloading and installing the driver again, but I cannot find it anywhere on the internet.
    I am making shortfilms, so it is very much needed to have a disc burner.
    Would be great if anybody could help!
    Thanks a lot!

    Hi Joeri B
    Go to: *Applications > Utilities > Disk Utility* and try ejecting the DVD from there or restart the iMac holding the mouse button.
    Reset the iMac's SMC: http://support.apple.com/kb/HT1543
    Reset the iMac's PRAM and NVRAM: http://support.apple.com/kb/HT1379?viewlocale=en_US
    Dennis

  • Since upgrading to the newest ios 6.1.26 itunes isn't showing my app list on the left side of the screen, nor does it show all of self made movies, only the purchased ones. Anyone else experiencing a similar problem?

    Since upgrading to the newest ios 6.1.2 itunes isn't showing my app list on the left side of the screen, nor does it show all of my self made movies, only the purchased ones. Anyone else experiencing a similar problem? The iTunes store and most of the other features show up but other normal features seem to be missing too. I wish I hadn't upgraded. Anyone else having this problem???? 

    If you are talking about iTunes on your computer use the iTunes View menu item, "Show Sidebar".
    If not, I have no idea what you are describing.

  • Which is better in custom self service function SIT or EIT??

    Hi Guru,
    I have requirements of loan request to be through self service,the end of the approval cycle i will use user hook to create loan element entry for the employee.
    I want to know which is better to be used for this function SIT or EIT ?? which is better in validations on submit page level.
    Regards

    Hello,
    Below thread may provide more informations on difference between SIT and EIT.
    Basis of choosing EIT, SIT and Addition Information DFF
    Regards,
    Saurabh

  • Dvd Player Won't Play Copies Of Or Self-Made DVDS

    Macbook Pro 2.5Ghz with 10.5.5, and DVD player 5.0.1. Dvd player will play commercial dvds, but not any that I or anyone else has made. The same ones will play in my Mac Pro with the same settings. I tried many, but the common denominator is that it will not play anything but commercial DVD's, when other computers and players will play the same disc. Wanted to check here before updating to 10.5.7. Any help is appreciated.

    I have been able to
    1. burn data and movie DVDs and CDs
    3. read CDs and DVDs rented from Netflix or Blockbuster, purchased DVDs,
    4. and read DVDs burned by a 2007 Quad G5 running the same OS!
    But the DVDs I burn with the drive DO NOT WORK in the same drive. The DVDs I burn DO work on a different a 1999 mac laptop. And on a 2007 Quad G5. The drive can read discs burned by the Quad G5.
    Also, when the DVD I burn finishes, and I'm prompted to "Mount" or "Eject" the finished disc, if I mount the disc, it works. It plays. The drive reads the disc. And if I choose "Eject" - if I re-insert the disc, the computer cannot read it and spits it out.
    Why should it be able to burn but not read the discs it burns??
    PIONEER DVD-RW DVR-106D:
    Firmware Revision: A606
    Interconnect: ATAPI
    Burn Support: Yes (Apple Shipping Drive)
    Cache: 2000 KB
    Reads DVD: Yes
    CD-Write: -R, -RW
    DVD-Write: -R, -RW, +R, +RW
    Write Strategies: CD-TAO, CD-SAO, CD-Raw, DVD-DAO
    Media: Insert media and refresh to show available burn speeds

  • Cannot select text on a self-made pdf from scan

    I have Reader 9.5.2 on a Mac G4 with OS 10.4.11.
    I scanned a page of a C18 German book printed in the old Gothic script and converted the scan to pdf. So this is not a case of permissions in a pdf document received from someone else. I want to convert the font to a modern one by selecting the relevant part of the text and inserting it into a Word or a TextEdit document or by using the 'Save as...text' facility in Adobe Reader in order to export the text to Word. If I can get the text into Word or TextEdit, I can then change the font. But I cannot select any text, nor export the text. As I have said, this is not a matter of permissions in a document received from someone else; the pdf document was made from my own scan. If anyone can help, I should be most grateful; it would save a great deal of typing.

    Thanks for this. It seems logical that OCR for a family of typefaces (Gothic, Blackletter, Fraktur) that ceased to be used in most of Europe by the C18 or earlier, but was still used well into the C20 in Germany and Austria (it was still taught in the primary school in Vienna which I attended as a small boy before the war) would most likely only be available in Germany. I think it's going to be typing and not OCR for me!

Maybe you are looking for

  • Lost my index.html

    I lost my "index.html" on my iDisk . When i go to my iDisk, escapade/Web/Sites/ i saw the folder "iWeb" everethig inside is correct but can see my index.html? it's a Safari logo. When i rigth on Safari my adress, web/mac.com/escapade saw nothing, bef

  • Still frame on out put monitor after seq sent from color

    Hi, I am sending back to fcp from color and then I render in fcp but the file will play on desktop fine but not out to monitor as it did before going to color, why is this dose color change the format I have check and the format is the same and the s

  • CS4 Generic Import Error

    I have a project that was exported using the project manager, all files, in Premiere CS3 on another workstation. The folder was copied to a portable HDD and copied onto one of my edit drives.  In this project were many, (400), PSD files with layers.

  • CONVERT INVERTED-DATE

    Hi Experts,                 can anybody explain below example.. DATA: odate TYPE d VALUE '19955011',            idate LIKE odate. CONVERT DATE odate INTO INVERTED-DATE idate. CONVERT INVERTED-DATE idate INTO DATE odate. Thanks in advance.. shobha hen

  • Updating policies and Policy Database or Policy Updates without server restart

    Hi again, I have implemented the flash access reference implementation server including setting up all example database tables (so we have a central database server).  I have started updating policies for the application "whitelist" features and have