Develop classes in BlueJ tutorial

Hi,
I'm currently looking at some tutorials for bluej.. but i cant seem to work out a scenario in developing classes... yes im new to java... but i'd lov to know the answer to the following scenario:
===
You are required to develop a set of classes for use in an Address List Organiser such as those found in PDA devices.
The Software is to have the following functions.
Add a new address item to the list.
Remove an address item from the list.
Print out the whole list.
Print out a single item by supplying its position in the list.
Search: print out all the items where the name contains a string which you specify.
Each of the above functions will be a method belonging to a class AddressList.
The class AddressList will also make use of another class Address.
The Address class will contain basic address information for a single contact i.e.
Name
Address
Mobile no.
Email address.
A useful method.
The class String has a built in method indexOf:
public int indexOf(String str)
You can use it to discover if one string is contained inside another.
So s1.indexOf(s2) will return -1 if s2 does not occur inside s1. If s2 does occur inside s1 it returns an integer defining which character the strings starts at. e.g. If s1 is "Introduction to Programming " S1.indexOf("giraffe") will return -1 and s1.indexOf("tro") will return 2.
===
lov to know the answer to this... any help would be apprecaited...
cheers,
riz

hi warnerja,
its a self-study tutorial... ive been studying the
the book of bluej.. and its an excercise, but theres
no answer to this excercise...
im jus highly interested in learning java, by
comparing the question with the answers and working
myself up...
cheers
riz.
p.s. im not a studentIt doesn't matter whether this is homework for a class that you have to pass, or self-study. The principle is the same. Are you really going to learn by someone doing that exercise for you?
As you posted from it:
"You are required to develop a set of classes for use in an Address List Organiser such as those found in PDA devices."
It would be best if you would follow the instructions to do that. If you can't do it, better start smaller and revisit it later.

Similar Messages

  • How to create Development Class in SAP R/3 4.7c and Netweaver?

    I follow some old notes on ABAP Development Class but I could not create a new Development Class. i.e. Stuck in creatinf a type group.  Please give some details on how to create a development class.  Thanks.
    see the following stepa:
    (A) Procedure for creating  a type group:
    /nse80
    1. Object Navigator> select Development class>(Enter your development class
       yFTGxxDEV
    2. Double click on development class object types.
    3. Type Group: zPTAxx1.
    4. Click on the Create button at the bottom (4th one from the left).
    5. Enter short text: zPTAxx1 type group.
    6. Save>Enter your development class> click on diskette button to save the type group
    7. Select Source Code tab and enter the following:
    "An example type-pool statement containing types and constants
    type-pool zxx1.  "zxx1 is a type pool. It is also known as a type group
    types: zxx1_dollars(16)    type p decimals 2,
                 zxx1_lira(16)          type p decimals 0.
    constants:
           zxx1_warning_threshold type i value 5000,
           zxx1_amalgamation_date like sy-datum value '19970305'.
    8. Select  Type Group from menubar
               a) Check
               b) Save
               c) Activate
    9. Click the back button or F3 to exit.
    10, Show  your type group to your teacher.
    11. Go to ABAP editor and enter the following program:
    "Calculations on date
    report zxx_0914.
    type-pools zxx1.                   "contains zxx1_amalgamation_date
    data:    d1              like sy-datum,
                d2              like d1,
                num_days type p.
    d1  = d2 = sy-datum.
    subtract 1 from d1.
    write / d1.                              "yesterday's date
    d2+06 = '01'                         " first day of current months
    subtract 1 from d2.
    write / d2.                           " last day of previous month
    num_days = sy-datum - zxx1_amalgamation_date.
    write / num_days.                " number of days since amalgamation
    11. Double click zxx1 from the type-pool statement to see the type group.
    12. Follow lab1 procedure and run your program
    (B) Run an ABAP program using field symbol ( i.e. pointer)
    report zxx_lab6.
    data  f1(3)  value   'ABC'.          "Step 1 Define a variable
    field-symbols <f>.                     "Step 2 Define a pointer variable ( it only stores address)
    assign f1 to <f>.                        "Step3 Initialize the pointer variable with an address
    write <f>.                                    "Step4 Now you can use <f> in place of f1
    write / f1.                                      " (same as write f1 )  
    <f> = 'xyz'.                                   " Assign a new value to f1
    write <f>.
    write / f1.

    This is not the way to create a new development class.
    Follow this steps to create a development class:
    http://sap.mis.cmich.edu/abap4/knowbase/Create-Dev-Class.pdf
    Regards,
    Naimesh Patel

  • BW development class can't be view through SE80

    I go to se80 and click "edit object" , but I can't find the development class field. the fields are trasaction, message class.....
    I'm using BI7.0, where can I create a new development class in SE80

    Go to SE80->under Repository Browser choose Package than enter your package or so called development class and press ENTER. Then you can create your package.
    Notice that term development class is obsolete and the package is used instead.

  • Creation of developement class,package and access key

    COULD ANYBODY EXPLAIN about
    creation of developement class,package and access key
    and who will create them?

    Working With Development Objects
    Any component of an application program that is stored as a separate unit in the R/3 Repository is called a development object or a Repository Object. In the SAP System, all development objects that logically belong together are assigned to the same development class.
    Object Lists
    In the Object Navigator, development objects are displayed in object lists, which contain all of the elements in a development class, a program, global class, or function group.
    Object lists show not only a hierarchical overview of the development objects in a category, but also tell you how the objects are related to each other. The Object Navigator displays object lists as a tree.
    The topmost node of an object list is the development class. From here, you can navigate right down to the lowest hierarchical level of objects. If you select an object from the tree structure that itself describes an object list, the system displays just the new object list.
    For example:
    Selecting an Object List in the Object Navigator
    To select development objects, you use a selection list in the Object Navigator. This contains the following categories:
    Category
    Meaning
    Application hierarchy
    A list of all of the development classes in the SAP System. This list is arranged hierarchically by application components, component codes, and the development classes belonging to them
    Development class
    A list of all of the objects in the development class
    Program
    A list of all of the components in an ABAP program
    Function group
    A list of all of the function modules and their components that are defined within a function group
    Class
    A list of all of the components of a global class. It also lists the superclasses of the class, and all of the inherited and redefined methods of the current class.
    Internet service
    A list of all of the componentse of an Internet service:
    Service description, themes, language resources, HTML templates and MIME objects.
    When you choose an Internet service from the tree display, the Web Application Builder is started.
    See also Integrating Internet Services.
    Local objects
    A list of all of the local private objects of a user.
    Objects in this list belong to development class $TMP and are not transported. You can display both your own local private objects and those of other users. Local objects are used mostly for testing. If you want to transport a local object, you must assign it to another development class. For further information, refer to Changing Development Classes
    http://help.sap.com/saphelp_46c/helpdata/en/d1/80194b454211d189710000e8322d00/content.htm
    Creating the Main Package
    Use
    The main package is primarily a container for development objects that belong together, in that they share the same system, transport layer, and customer delivery status. However, you must store development objects in sub-packages, not in the main package itself.
    Several main packages can be grouped together to form a structure package.
    Prerequisites
    You have the authorization for the activity L0 (All Functions) using the S_DEVELOP authorization object.
    Procedure
    You create each normal package in a similar procedure to the one described below. It can then be included as a sub-package in a main package.
    To create a main package:
    1.       Open the Package Builder initial screen (SE21 or SPACKAGE).
    2.       In the Package field, enter a name for the package that complies with the tool’s Naming Conventions
    Within SAP itself, the name must begin with a letter from A to S, or from U to X.
    3.       Choose Create.
    The system displays the Create Package dialog box.
    4.       Enter the following package attributes:
    Short Text
    Application Component
    From the component hierarchy of the SAP system, choose the abbreviation for the application component to which you want to assign the new package.
    Software component
    Select an entry. The software component describes a set of development objects that can only be delivered in a single unit. You should assign all the sub-packages of the main package to this software component.
    Exception: Sub-packages that will not be delivered to customers must be assigned to the HOMEsoftware component.
    Main Package
    This checkbox appears only if you have the appropriate authorization (see Prerequisites).
    To indicate that the package is a main package, check this box.
    5.       Choose  Save.
    6.       In the dialog box that appears, assign a transport request.
    Result
    The Change package screen displays the attributes of the new package. To display the object list for the package in the Object Navigator as well, choose  from the button bar.
    You have created your main package and can now define a structure within it. Generally, you will continue by adding sub-packages to the main package. They themselves will contain the package elements you have assigned.
    See also
    Adding Sub-Packages to the Main Package
    http://help.sap.com/saphelp_nw04/helpdata/en/ea/c05d8cf01011d3964000a0c94260a5/content.htm
    access key used for change standard program.
    www.sap.service.com

  • Need FM/Class for Direct deletion of Development Class/Package in ABAP

    Hi experts,
    I had stored all the unwanted objects in a development class/ package which I intended to delete later. I want this deletion to be done automatically. Is there a function module or class that can help me do this?
    Thanks in advance,
    Adithya
    Edited by: Adithya K Ramesh on Jul 18, 2011 3:56 PM

    I was hoping a separate server-side process wouldn't be needed -- if you're thinking of something like RMI, that's also a bit heavyweight for my needs. I know I can talk to the remote server on telnet port 23, though.
    Further experimentation today with the Jakarta net library has generated something that works using their telnet classes. (After I asked for help here, of course. The same thing happens when I shop for groceries....) But using this leaves me referencing an external library that:
    1. has functionality I don't need that complicates the code, and
    2. forces me to address licensing requirements.
    So I'd still love to see an example of a telnet-like Java class that strips away all the non-essentials in the Jakarta telnet library code, leaving behind a simple public domain class that can be used to connect to a remote host and transfer characters over that connection.
    I appreciate that this may be asking for a lot, but as they say, if you don't ask, you don't get. ;-)
    Thanks!

  • Developer class files are downloaded every time

    The jinit jar files are being cached. However the developer class files are being downloaded everytime. I’ve written other web aps where classes were downloaded only once - there is a way for classes to only download once and then automatically download when changed / added – similar to jinitiator – that is critical – just can’t expect a user to repetitively wait a few minutes to use an ap.
    Installed versions are:
    Java 2 Runtime SE v1.4.1_07
    Java 2 SDK, SE v1.4.1_05
    Microsoft IE 6 SP1
    Oracle JInitiator 1.3.1.17
    Microsoft Windows 2000 [Version 5.00.2195]
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    Forms server 6i patch 16
    Web server 9iAS rel 1

    George,
    Forms files (jar) are cached and only checked for its timestamp. There are a few classes that are accessed directly and I don't know why - I think one of the EWT classes if i remember well. So 99.99 % of all files are cached.
    Frank

  • How to change the Development Class of the SAPSCRIPT FORM

    Hi All,
          I have transported the old form which needs to be deleted in Test System. Is that possible to create a TR for deletion and send it to Test enivronment?..
         Also is it possible to change the development class for a form?
         Please help me on this. Urgent!...
    Regards,
    Ramkumar.

    Yes, it is possible to change the development class for forms..
    Use SE03, transport organiser tools
    goto node OBJECT DIRECTORY ENTRY
    select node "Change object directory entries"
    Execute
    goto the next text box after data element, type FORM, give your SAPSCRIPT form name and tick the check box execute... now rightclick on your form and chenge development class..
    Now coming to your second question is is not possible to delete a FORM that it is already transported to QA and Production, only way to do this is by doing client copy.. basis will do it for you..
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • How to create development class (package)

    Hi
    Can anybody help me out in creating development class (package) to store ABAP programs.
    Thanks in advance
    Raghav

    Hi
    go with abap dictionary->select database table->provide the table for dev classs eg. V_TDEVC-> go for display option-> select utilities->select contents option-> select create dev class,
    provide the name and short text,software component->create req.no.
    with this dev class will be created
    or
    Use the transaction SE80.
    1. Select "Package" from the list box.
    2. Enter "ZEST" in the below text box
    3. Press "Enter".
    4. It will ask you whether to create.
    5. Sy "Yes".
    6. Give Short Description
    7. Click Save button.
    check this
    How to create development class
    If u find it useful plz reward the points
    charitha
    Message was edited by:
            charitha kolla

  • How to Download the development class into Hard disk

    Hi Experts,
    i have same problem in package, i want save these objects like data dictionary objects,programs,includes,messages class, class library and etc...
    save into local disk.
    pls give the step by step process
    thanks for advance,
    venu m

    Hi venu,
    <b>Download Program from a Development Class:</b>
    First check in tadir that the given package is valid
    SELECT SINGLE devclass FROM tadir INTO ws_devclass WHERE devclass = p_devcls.
    Select all the records from TADIR table where OBJECT = 'FUGR' and PGMID = 'R3TR '.
    In this way u can get all the FUnction group for that package.
    For getting the function module under the function module use the FM RS_FUNCTION_POOL_CONTENTS to get all the function module under the Function group.
    Usign the table tfdir get the program name of the Function module.
    Using the FM 'GET_INCLUDETAB' get all the includes
    for that PRogram name.
    Loop at the internal table which you got from the function module.
    Use the READ REPORT prog INTO itab.
    Download the contents to the place where you want.
    Also refer:
    http://www.sap-img.com/abap/download-and-upload-your-abap-program.htm
    Hope it is helpful.
    Manish
    Message was edited by:
            Manish Kumar

  • Tables for development class and program name

    Hi,
    IN which tables can we find the program name and its development class?
    Thanks,
    Kumar

    Hi Kumar,
       Check the Table TADIR.
    Regards,
    Swapna.
    Edited by: NagaSwapna Thota on Jul 9, 2008 10:41 AM

  • To find Custom Developed Function Module -Belonging to a Development Class

    Hi Experts,
    How to find custom developed function modules belong to a particular development class.
    Or Funtion Group belonging to a particular development class.
    Thanks in Advance,
    Regards,
    IFF

    Hi,
    Ofcourse you can get function group or function module associated with a Development class from Transaction SE80 or SE84.
    Step-by-step.
    1. From SAP start call transaction se84.
    2. Expand Program Library
    3. Select Function Group or Function Module
    4. In the standard selections give the 'Package' as the name of your development class.
    You will get the list of all function modules associated with your development class. The function modules starts with 'Z' or 'Y' will be the custom developed ones.
    Regards,
    Renjith Michael.

  • Which table stores all development class and names of programs

    Hi All,
    can any one tell me which table stores all development classes and programs we made.

    thanks for the answer , i got info also.
    TADIR is also one table in which you can find out the prog names and dev class.
    check table for dev class is TDEVC.

  • Tables for development class and Message Class

    Hi All,
    In which table is Message Class and Development class stored.
    Thanks,
    Santosh

    Hi All,
    I am closing this thread..I was looking for a single table which does this and it is TADIR with object = MSAG
    Thanks,
    Santosh
    Edited by: Santosh Kumar KezkhepatMelathil on Aug 29, 2008 1:32 PM

  • Changing the development class for 0CALMONTH

    Hi we upgraded from BW3.5 to 7.0 and we are getting the same error from the thread :  Unable to change development class because field is greyed out
    Does anyone know how this problem was resolved.
    Regards,
    Brian
    I am changing the development class for 0CALMONTH and for some reason I am not able to change the $TMP to ZBW because it is greyed out. I also noticed the Orginal system field is SAP and not our BWD name and the Orginal language is DE and not EN.
    How would I change the development class for this IO? I am perplexed how this got to this status. When I collected the 0CALMONTH afterwards and listed the IOs belong to 0CALMONTH, I was able to change the development class. Why is this being greyed out?

    Changing while signed on in DE did not work.   - I also tried changing the person reponsible and get the following 
    Local private objects cannot be repaired
    Message no. TR229
    Diagnosis
    Every user of the SAP System can access and change local private
    objects using the ABAP/4 Development Workbench.
    System Response
    Setting the repair flag is rejected.

  • Wrong Development class in Transport request

    Hi Gurus,
             I had to change the Info OBject to meet the business requirement(Enabled Text Master Data). While creating transport request, I enteres wrong development calss in treansport requset. No transport request were released to QA. Now how to fix this issue, I mean How to enter the right Development class for the Info Object?
    Thanks in advance.

    dear Raj,
    you can change the development class/package with
    rsd1 (for characteristic), rsd2 (keyfigures),
    type in your infoobject name, and click button 'object directory entry' in top menu, in next screen click pencil icon ('change/display' F6) and choose/type in the right development class/package and 'save'.
    hope this helps.

Maybe you are looking for

  • Recon acct ready to input field- in G/L Master data

    Hi Gurus What is the importance of field- Recon account ready to input in G/L master data?

  • Plug-in JAR issue

    Hi, I am trying to call a plug-in in my existing java code. I have added the JAR to library. Basically, I need to establish connectivity to another server and insert data in that database. This is handled by a plug-in "BOPlgin.jar". I have imported t

  • Swf Size

    I have been working on a project for about a year, and my base flash file is larger than it should be (i think). My question is this: Does the size of the .fla file affect the .swf file if there are graphics in it that are not in the final version? T

  • Round and round

    the cursor goes around unceasingly on the download Adobe Acrobat free... why?

  • Converting Web dynpro date to SAP date type

    Hi I am using BAPI_FLIGHT_GETLIST to get list of flights but depending on some input criteria eg. on a particular date. I have written code upto this: Bapi_Flight_Getlist_Input input = new Bapi_Flight_Getlist_Input(); wdContext.nodeBapi_Flight_Getlis