Basic programming question

I want to do small framework that it exposes 3 methods
Then, i want that "something" compile and run this code, but this code
doesn't have "main method".
how can i do that. May be including the main method "hide" or something.
thank you
Public class YYY implements XXX {
  public int method1(){
    System.out.println("this method1");
  public int method2() {
    System.out.println("this method2");
  public int method3() {
    System.out.println("this method3");
}

I want to do an application where developers "just" implement the methods that I want. for example readFile() , writefile() and closefile().
but I need one "start point" or main function, in order to "control" the program flow, where: I read the config file..., find a directory... open a file..., start threads..., and so on. All this function must be "hide" to developers. I whish that developers always implement the some "3 simple methods", complile and run it and they do not worry about the rest of the methods.
It is posible to do that ?
sorry for my english.

Similar Messages

  • Basic iPhoto questions:

    I have some Basic iPhoto questions before I start using the program:
    - does iPhoto apply any compression or change images in any way when they
    are imported?
    - after images are imported, can the original source folder of images be deleted off of the mac?
    - can Quicktime files exported from iPhoto be viewed on a Windows computer?
    - can iPhoto handle large resolution images that might be as large as 8-15mb each? does it display them quick? are there any known file size issues?
    Thanks!!!!

    kat.
    Is there a way to use iPhoto on a network so other users can read and possibly write to an iPhoto library on a networked mac?
    iPhoto is a consumer level photo organiser, not a server. It's possible to share photos but libraries are very difficult and fraught with the danger of database corruption. Some have reported success.
    Is it possible to password protect or secure certain images in the library so they can not be seen by anyone?
    No. The best I can suggest there is to create a second library and store it in a secure area like a protected dmg. But remember, you can only have one library open at a time.
    After photos are deleted from iPhoto, are there any remaining traces or cached files anywhere other than the trash
    If you delete photos from iPhoto and empty the iPhoto trash then the pics are removed from the Finder as well. They remain as findable as any other deleted file from that point, which is, very, if the searcher in knowledgeable.
    Regards
    TD

  • Object class deployment - Basic form question

    OK, I subclass calendar object from Oracle provided standard
    object class. What do I need to deploy to use this form now
    apart from calendar.pll and my fmx. What about the object class
    from which I sub-class. Do I need to compile and deploy that
    also? How will form resolve this on run time the parent object
    class as I really did not copy, just sub class and we do not
    deploy original class? Basic form question. Thanks.

    You can set the "help" property on the field (which gives you the little "information" icon link beside the field).
    You could also try adding another field of another class above or below:
    <Display class='InlineAlert'/>
    <Display class='ErrorMessage'/>
    <Display class='HtmlPage'/>
    ..etc
    -Rob

  • Hi, i'm Architec and my basic programs are: Autodesk Architecture and 3D studio Max. Can i run it in the MacBook Pro 13.3-Inch  (NEWEST VERSION) Thanks!!!

    Hi, i'm Architec and my basic programs are: Autodesk Architecture and 3D studio Max. Can i run it in the MacBook Pro 13.3-Inch  (NEWEST VERSION) Thanks!!!

    You can but make sure you upgrade your RAM to 16GB - you can't do that through Apple...
    Autodesk is a memory intensive program and the same goes with 3D Studio Max.....
    Another suggeston if you must use a 13 inch is to buy the base 13 inch Macbook Pro and upgrade the RAM to 16GB and install a SSD to make it perform fast.
    Another option is to get a refurbished 15 Inch Macbook Pro and do the RAM upgrade yourself...Advantage going 15 Inch is because it has it's own discrete graphics adapter rather than the built in Intel video.

  • EJB Client - basic programming principles

    Hello,
    I'm new to the EJB world, can someone please give me some giudelines on basic programming principles on how to write a simple EJB client ?
    Thanx people!
    Son

    We have some very simple "hello, world" examples here :
    https://glassfish.dev.java.net/javaee5/ejb/EJB30.html
    There is also an EJB FAQ :
    https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html
    Another resource is the Java EE 5 Tutorial :
    http://java.sun.com/javaee/5/docs/tutorial/doc/
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • I have a programming question

    Hi
    I have a programming question here. I spent a lot of time doing it, but I still can't get it. Here is the question :
    Write a method called countTo that takes one integer as a parameter and prints a
    comma-separated list of the numbers from 1 to the value of the parameter, or an
    appropriate error message if the parameter is less than one. In either case (if a list
    of numbers is printed, or an error message is printed), after printing, the cursor
    should be advanced to the next line.
    For example, if the parameter has a value of 1, the method should just print the
    the value 1 to the screen followed by a new-line character. If parameter has a value
    of 5, the method should print the following (exactly as shown, make sure there is
    no comma after the last value, and that all values are on one line with no spaces
    between them):
    1,2,3,4,5
    This method should only print to the screen, and should not return a value.

    I have a programming question here. I spent a lot of
    time doing it, but I still can't get it. Please post what you have done so far.

  • Many basic programs are missing in my macbook pro

    I don't know why but many basic programs are missing in my macbook pro.
    I have mountain lion version.
    some of them: make, port and etc.
    I have a lot of problems with installation of programs in the terminal.
    Is there any way to solve it? to install the whole package of programs which are supposed to be built-in?
    Nimrod

    I have make, after downloading XCode and its commandline extensions (free from App store). Can't help you with the others.

  • Basic openGL question

    Hi guys. I was taking a class over the summer and learned openGL. We were using PC's. I was able to get a basic program that had a rotating box to compile on the PC. Now, back at home, I would like to get the program to work on my mac. I changed a few things so it would compile but I get a signal 6 "sigbart" error and the program exits. It also says "ZeroLink: unknown symbol '_glutInit'".
    Here is my code (don't mind the random comments, they are notes from my class):
    #include<iostream>
    #include <GLUT/glut.h>
    #include<string>
    using namespace std;
    //glTranslate(x,y,f) pos x to move right, pos y to move up, neg f to move back
    //glRotatef(a,x,y,z) a=angle -- x,y,z=vector
    //glScalef(x,y,z) x,y,z= factor to multiply by
    void drawString(int x, int y, string s,int c1, int c2,int c3)
    //string s = "Axel";
    cout<<s;
    glColor3f(c1,c2,c3);
    glRasterPos3f(x,y,0); //specify where x,y for character is
    for(int i=0;i<s.length();i++)
    glutBitmapCharacter(GLUTBITMAP_TIMES_ROMAN10, s);
    void display()
    //glBegin(GLTRIANGLEFAN); //triangles
    glClear(GLCOLOR_BUFFERBIT);
    glBegin(GL_QUADS);
    //left face
    glColor3f(1,0,1);
    glVertex3f(-20,30,25);
    glVertex3f(-25,25,0);
    glVertex3f(-25,-25,0);
    glVertex3f(-25,-25,25);
    //top face
    glColor3f(1,0,0);
    glVertex3f(30,30,25);
    glVertex3f(30,-20,25);
    glVertex3f(-25,-25,25);
    glVertex3f(-20,30,25);
    //bottom face
    glColor3f(0,0,1);
    glVertex3f(25,25,0);
    glVertex3f(25,-25,0);
    glVertex3f(-25,-25,0);
    glVertex3f(-25,25,0);
    //right face
    glColor3f(0,1,1);
    glVertex3f(25,25,0);
    glVertex3f(30,30,25);
    glVertex3f(30,-20,25);
    glVertex3f(25,-25,0);
    glEnd();
    //glScalef(1,1,1);
    glRotatef(45,12,12,12);
    glutSwapBuffers();
    //glPushMatrix();
    //drawString(75,-96,"Axel",0,1,1);
    // glTranslatef(10,10,0);
    //glPopMatrix();
    int main(int argc, char **argv)
    glutInit(&argc, argv);
    glutInitDisplayMode(GLUTDOUBLE|GLUTRGB);
    glutInitWindowSize(500,500);
    glutInitWindowPosition(100,100);
    glutCreateWindow("Axel's Final Project");
    // glMatrixMode(GL_MODELVIEW); undo
    glOrtho(-100,100,-100,100,-25,25);//(left,right,bottom,top,near,far)
    glClearColor(1,1,1,1);
    glutDisplayFunc(display);
    glutMainLoop();
    //GLTIMES_ROMAN
    return 0;
    Any help would be great. Also, I would like to buy a book on openGL. The is one book that comes out in november especially for macs (http://www.amazon.com/gp/product/0321356527/sr=8-10/qid=1153749753/ref=sr110/103-6956543-8423069?ie=UTF8). Is it worth the wait, or should I get another book (if so, which one).
    thanks,
    axel

    You say you took a course recently. Either you are not "quite new" to OpenGL, or else your instructor shortchanged you. Instructors often do that.
    Try this RTFM-based approach.
    The init() method is simply invoked from within main(). You have your option of simply placing its contained code in the main( ) function. The former approach is, I believe, known as "structured programming". Google for that one, too.

  • I paid for basic program to convert PDF to Word or Excel - how to operate??

    I paid for the basic program to convert PDF's to Word or Excel Documents.  When I pull up the PDF I want to export and click on export icon in the tool bar it takes me back to sign up for the service which I have already paid for and received email confirmation - help!!!

    1. Make sure you signed up for "ExportPDF" or "PDF Pack", not something else.
    2. Check you are signing in with the SAME Adobe ID used to subscribe.
    3. If no good, go to Manage Account on Adobe's site and check your subscription is active. (If you just paid it can take up to 48 hours for some reason).

  • I need help on a basic program

    Hey people I need bit of help writting a very basic program for a project due on wednesday of this week. I am new at this I wanted to see if I could get some help from you.
    I need basically to write a program that when you insert the year of birth it displays the chinease symbol or charater corresponding to the chinease horoscope, for example if I was born in 1982, my ymbol will be the dog... each animal repeats each 12 years, and there are 12 animals,,, some friends told me to do it with a do while, but as I am trying, it does not work that well or I don't do it well, ejejeje
    Please help me
    Juan Antonio

    If you show us what you've done you are more likely to get help.
    I don't think you need loops, have you been taught about the modulus operator "%" ?

  • Adding Date/Time Field + X Number of Days - Basic Calculation Question

    I am assuming this is a basic calculation question. New to Adobe LiveCycle Forms.
    I have a simple form containing a table. The table appears as such:
    Text
    Formatted as Date/Time Fields
    Header 3
    Monday
    user wil choose the beginning date (Date/Time) this is DateTimeField1
    Tuesday
    this should calculate DateTimeField1 + 1
    Wednesday
    this should calculate DateTimeField1 + 2
    Thursday
    this should calculate DateTimeField1 + 3
    Friday
    this should calculate DateTimeField1 + 4
    Saturday
    this should calculate DateTimeField1 + 5
    Sunday
    this should calculate DateTimeField1 + 6
    Calculations are performed after the date is chosen for Monday. My mind tells me the simple calculation of DateTimeField1 + 1 is not going to work (and in fact doesn't!) as it needs to change Monday to a number first. I saw on another thread the following:
    Num2Date(Date2Num(Date(DateTimeField1), "DD.MM.YYYY")+7, "DD.MM.YYYY")
    Thought this was going to get me close. No cigars though!
    Any quick help is greatly appreciated. And since I am new to this, details about what needs to be changed would be great too!
    Thanks

    Here an addition for you date field.
    This FormCalc script in the exit:Event will check it the selected date is on a monday.
    If not it will go the days back until the last monday.
    var Selection = Date2Num($.formattedValue, DateFmt(2))
    var WeekDay = Num2Date(Selection, "E")
    var NewDate
    if (WeekDay eq 1) then
              NewDate = Selection - 6
    elseif (WeekDay eq 3) then
              NewDate = Selection - 1
    elseif (WeekDay eq 4) then
              NewDate = Selection - 2
    elseif (WeekDay eq 5) then
              NewDate = Selection - 3
    elseif (WeekDay eq 6) then
              NewDate = Selection - 4
    elseif (WeekDay eq 7) then
              NewDate = Selection - 5
    else
              NewDate = Selection
    endif
    $ = Num2Date(NewDate, "EEE DD.MM.YYYY")
    Hope this helps, too.

  • Can I run another Small Basic program from a simple menu in another Small Basic program, (It does not need to return!)

    Hi
    Is there a way of calling another program from within a small basic program ?
    I dont mean run within it and then continue where it left off.
    I simply ideally I ideally want to create one program that only contains menu options and depending on the user choice, then to go off and run another program.
    If this is not possible..maybe I am getting over cautious, but does any one know the program size limit, if I need to put all teh features in one program ?
    Thanks in advance
    Dave

    You would need an extension that can start an external exe (may be any exe includng another pre-compiled Small Basic program, or even the SmallBasicComplier to compile source and then run it), such as LDProcess.Start in my extension.  There are also
    other extensions with this or similar commands.

  • Basic Exporting Question

    My main question is a very basic exporting question, but here is a super-condensed explanation of my big-picture goal for context:
    Large (~450 MB) aiff on CD --> trim w/ Quicktime --> small (~16 MB) MP3 in iTunes
    I would like to take an audio file (aiff) that is approximately 450 MB and export it from Quicktime and in doing so, reduce the file size and convert it to MP3. When I simply try to export it, it doesn't ask me about what size I want, nor does it give the option of MP3 formatting.
    I have figured out how to reach my goal, but it's a mess. After I make my trims in QT, I have to:
    1. select "share" instead of "export".
    2. It asks me what size I want and I select small.
    3. The file is then exported as a Quicktime movie into Mail and the size is reduced from 450 MB to about 20 MB.
    4. I then have to "right-click" on the attachment in the email that is created,
    5. save the attachment,
    6. discard the email,
    7. import the file into iTunes, and
    8. create an MP3 in iTunes to finally arrive at my goal.
    This seems like a ridiculously convoluted process to change a large aiff to a small MP3 and put it in iTunes. Any suggestions?

    Thanks. I guess the basic answer to my question is that it can't be done in one or two fell swoops. The problem is that it starts on a burned disc, and I need to make edits to it before it ends up in iTunes (to be eventually used in iWeb). I was hoping to avoid juggling back and forth between iTunes and QT. I either would have to send it back to QT to do the edits after -->iTunes-->mp3, or import the large file from the CD to QT, make the edits, save changes, import large file to iTunes, convert to mp3.

  • Misc Basic PL/SQL Application Design/Programming Questions 101 (101.1)

    ---****** background for all these questions is at bottom of this post:
    Question 1:
    I read a little on the in and out parameters and that IN is "by reference" and OUT and IN-OUT are by value. To me "by reference" means "pointer" as in C programming. So it seems to me that I could call a function with an IN parameter and NOT put it on the right side of an assignment statement. In other words, I'm calling my function
    get_something(IN p_test1 varchar2) return varchar2;
    from SP1 which has a variable named V_TEST1.
    So.... can I do this? (method A):
    get_something(V_TEST1);
    or do I have to do this (method B):
    V_TEST1 := get_something(V_TEST1);
    Also, although this may muddy the thread (we'll see), it seems to me that IN, since its by reference, will always be more efficient. I will have many concurrent users using this program: should this affect my thinking on the above question?
    -- ******* background *******
    So Far:<< I've read and am reading all over the net, read and reading oracle books from oracle (have a full safari account), reading Feurstein's tome, have read the faq's here.
    Situation Bottom Line:<< Have an enormous amount to do in a very little time. Lots riding on this. Any and all pointers will be appreciated. After we get to some undetermined point I can re-do this venture as a pl/sql faq and submit it for posting (y'alls call). Some questions may be hare brained just because I'm freaking out a little bit.
    Situation (Long Version):<< Writing a pl/sql backend to MS Reporting Services front end. Just started doing pl/sql about 2 months ago. Took me forever to find out about ref-cursor as the pipe between oracle and all client applications. I have now created a package. I've been programming for 20 years in many languages, but brand new to pl/sql. However, pl/sql sql has freed me from myriad of limitations in MS RS's. My program is starting to get big (for me -- I do a lot in a little) pks is currently 900 lines with 15 functions so far. Currently SP (pls) is back up to 800 lines. I get stuff working in the sp then turn it into a function and move it to the package.
    What does application do?:<<<< Back End for MS Reporting Services Web front end. It will be a very controlled "ad-hoc" (or the illusion of ad-hoc) web interface. All sql queries are built at run-time and executed via "open ref cusor for -- sql statement -- end;" data returned via OUT ref_cursor. Goal is to have almost 100% of functionality in a package. Calling SP will be minimalist. Reporting Services calls the SP, passes X number of parameters, and gets the ref_cursor back.
    Oracle Version: 10.2 (moving to 11g in the next 3 months).Environment: Huge DW in a massively shared environment. Everything is locked down and requires a formal request. I had to have my authenticated for a couple dbms system packages just to starting simple pl/sql programs.

    Brad Bueche wrote:
    Question 1:
    I read a little on the in and out parameters and that IN is "by reference" and OUT and IN-OUT are by value. To me "by reference" means "pointer" as in C programming. So it seems to me that I could call a function with an IN parameter and NOT put it on the right side of an assignment statement. The IN parameter is not passing by reference. It is passing by value. This means variable/value of the caller used as parameter, is copied to the (pushed) stack of code unit called.
    An OUT parameter means that the value is copied from the called unit's stack to the caller (and the current value of the caller's variable is overwritten).
    To pass by reference, the NOCOPY clause need to be used. Note that is not an explicit compile instruction. The PL/SQL engine could very well decide to pass by value and not reference instead (depending on the data type used).
    Note that the ref cursor data type and the LOB data types are already pointers. In which case these are not passed reference as they are already references.
    The NOCOPY clause only make sense for large varchar2 variables (these can be up to 32KB in PL/SQL) and for collection/array data type variables.
    As for optimising PL/SQL code - there are a number of approaches (and not just passing by reference). Deterministic functions can be defined. PL/SQL code can be written (as pipelined tables) to run in parallel using the default Oracle Parallel Query feature. PL/SQL can be manually parallelised. Context switches to the SQL engine can be minimised using bulk processing. Etc.
    Much of the performance will however come down to 2 basic issues. How well the data structures being processed are designed. How well the code itself is modularised and written.

  • VBA Programing Question - Very Basic - One Field Maps to Another Field

    I have a MS Project schedule where I created some custom fields.  I have one custom field for the number of items required to complete the task and then another custom field for the remaining "open" items.  I am using those two fields
    to make a calculated third column which calculates the "% completed"...I couldn't call it "% complete" since that is one of the built-in fields. 
    The problem is then I have to go down through and manually type in the "% complete" values so that they match my calculated "%completed".  It sure would be slick if I had a macro that would automatically make all of the "% complete"
    fields match the "% completed" fields. 
    Seems simple, but I have zero experience in VBA programming.
    Thank you in advance for your help.
    Bill

    Try:
    Sub UpdateCompleteStatus()
    Dim Job As Task
        For Each Job In ActiveProject.Tasks
        If Not Job Is Nothing Then
            If Not Job.Summary Then
                If IsNumeric(Job.Number3) Then
                    If Job.Number3 >= 0 And Job.Number3 <= 100 Then
                        Job.PercentComplete = Job.Number3
                    End If
                End If
            End If
        End If
        Next Job
    End Sub
    Number 3 being zero is not a problem, but being an error value or <0 or >100 is a problem.
    <p>Rod Gill</p> <p><a href="http://www.project-systems.co.nz/project-vba-book/index.html/">The one and only Project VBA Book</a> <a href="http://www.project-systems.co.nz/"></p> <p>Rod
    Gill Project Management</a></p>

Maybe you are looking for

  • Error while creating new release groups in PO release strategy

    Hi All I was creating a release procedure for PO and after completing steps, Create Characteristic and Create class & while creating new release grp with the class created i am not able to save it and the error message is (ME492) is" Only one release

  • Agent Assignment Issue

    Hi Experts! I have successfully activated the PR and PO standard workflow scenario.  The only problem is that <b>any user can RELEASE the PR or PO document even if he/she is not the intended approver</b>. The PR and PO (IMG) release strategies were a

  • Custom Tag with boolean Attribute problems

    Hi, I've created a simple custom tag that is expecting a boolean attribute called "disabled". In my Tag derived class I've created a setDisabled(boolean b) method and set the following in the tag descriptor: <attribute>      <name>disabled</name>    

  • Ipod capacity question???

    I have a 2GB nano but when I go to settings, then about, my capacity is only 1.8GB. Is this how all the ipods are? Dell   Windows XP  

  • How can i notice the name of global variable ?

    When the customizing.fmx calls the standard.fmx, I came accross an error "FRM-41067 Can not find menu Item". customizing.fmx --> call --> standard.fmx So, I want to assign a global variable to standard.fmx in the customizing.fmx. How can i find out t