About Using Hints in OWB

Hi ALL
I am facing one diffculty about using hints in OWB. Through the mapping configuration, i am trying to use INDEX hint for my table. The generated code is correct, but is a very redundant code. Hint is repeating multiple times in the sub query. Below is the sample:
SELECT
/*+ INDEX ("My_Table1") INDEX ("My_Table2") */
Column1,
Column2,
Column3,
Column4,
Column5,
Column6,
Column7,
Column8
FROM
( SELECT
/*+ INDEX ("My_Table1") INDEX ("My_Table2") INDEX ("My_Table1") INDEX ("My_Table2") INDEX ("My_Table1") INDEX ("My_Table2") INDEX ("My_Table1") INDEX ("My_Table2") INDEX ("My_Table1") INDEX ("My_Table2") INDEX ("My_Table1") INDEX ("My_Table2") INDEX ("My_Table1") INDEX ("My_Table2") INDEX ("My_Table1") INDEX ("My_Table2") INDEX ("My_Table1") INDEX ("My_Table2") INDEX ("My_Table1") INDEX ("My_Table2") INDEX ("My_Table1") INDEX ("My_Table2")
Column9,
Column10,
Column11,
Column12
FROM
( SELECT .....
The text under the hint ("My_Table1") INDEX ("My_Table2") is repeating again and again. Any way of controlling the code being generated..?

From a performance standpoint, using hints in that manner may cause poorer performance than without. The INDEX (table_name) hint directs the optimizer to evaluate all relevant indexes. It is very easy to build an example where your column of interest is the last column in a multicolumn index and have a query perform worse than what a full table scan would produce. Oracle's recommendation is to "use hints sparingly" and that is for good reason.

Similar Messages

  • What is the disadvantage of using hints in query

    hi all,
    i am report developer, in my project we were using hits in the query ... so that the query performance has improved ..
    my question is if we use hints in the query will it give any effects.. means to say instead of using hints we can make use of execution plan..
    what is the use of execution plan i don't know.. but i have an ideal about it .. if we change the execution plan then that will be use full i think
    please reply me,, if am wrong please correct me.. am not that much good at execution plan and hints in oracle..
    please tel me the difference between hints and execution plan and which one is better ?
    Thanks
    Raja

    Hint are used to bias the execution plan of a query. So there is no 'which is bettter'. Hints may be used to generate a different execution plan, but you can't predict how an execution plan looks like in the end. This decision is done by the db engine.
    It best to start without any hints and let the query optimizer do the work. For queries you feel run to slow you can try to give hints and see if your assumption is correct (when the execution time is faster with hints).
    On the other side your question is not related to jdev. You may ask the question in the {forum:id=75} forum
    Timo

  • Using hints to improve performance

    Hi I am trying to create table using the below stmt. I am giving the counts on the tables also.
    It is taking 5-6 minutes to create the table. I am trying to improve its performance.
    Are my hints correct? What is nested look?
    Any suggestions.
    Thanks.
    create table dt_25_temp as
    select /*+ index(dt,DT_25_IDX) index(cl, T_CL_CLIENT_ID_CL_ID_IDX1 ) index(ml,T_MAILING_IDX2) index (ms ,t_ms_pk) use_nl(dupe,master)*/
    dt.id ,dt.l_id , dt.cl_id
    , ml.ml_id
    , ml.ml_u3
    , ms.t_cd
    , ml.ml_u1
    , ml.ml_u2
    , ml.ml_u4
    , ml.ml_u5
    from Dt_25 dt
    , t_ml ml
    , t_cl cl
    , t_ms ms
    where dt.cl_id = cl.id
    and cl.ml_id = ml.id
    and dt.ms_id = ms.id
    and cl.client_id = 12345
    and ml.client_id = 12345
    select count(1) from t_cl--1576262 records
    select count(1) from t_ml--280682
    select count(1) from t_ms--10341585
    select count(1) from dt_25--1092469 ( this is temporary table I create daily , it mave have 1000 to 1M records )
    DT_25_IDX is on column ID
    T_CL_CLIENT_ID_CL_ID_IDX1 is on client_id and id
    T_ML_IDX2 on id,cl_id
    t_ms_pk is on column id

    user10405034 wrote:
    Hi I am trying to create table using the below stmt. I am giving the counts on the tables also.
    It is taking 5-6 minutes to create the table. I am trying to improve its performance.
    Are my hints correct? What is nested look?
    Any suggestions.First of all, why are you using hints? If you have representative statistics in place and you're using the cost based optimizer it should be able to come up with a reasonable plan by itself. If not, you need to find out why. You should use hints only as a last resort, if you know something about your data that the optimizer simply doesn't know and therefore can't recognize.
    I wonder why you use the USE_NL hint if you're asking what a "nested look" (I assume you meant NESTED LOOP) is, suggesting that you don't know what this particular hint is about?
    - Can you show us the output of EXPLAIN PLAN using DBMS_XPLAN.DISPLAY? Use the \ tag before and after to use proper formatting in fixed font- What 4-digit version (e.g. 10.2.0.4) of Oracle are you using?
    - Given the fact that your DT_25 table might have significantly different sizes, the question is if the data from the other tables joined to will be restricted by the join or not. It would be possible that if your DT_25 table is small, a index access into the other tables might be faster, whereas if your DT_25 table is large and covers a lot of data from the other tables, a full table scan of those tables might be more appropriate.
    - How restrictive are these filter predicates specified:
    and cl.client_id = 12345
    and ml.client_id = 12345
    i.e. how many rows from the totals provided correspond to those predicates?
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Problem about using Oracle Form 6i to connect Oracle Database 10g express.

    Sorry to interrupt all of you.
    I have encountered a problem about using Oracle Form 6i to connect Oracle Database 10g express.
    As I would like to
    I use Oracle Net8 Easy Config to create a connection.
    According to "tnsnames.ora", the paramater of connection is as follows;
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    (CONNECT_DATA = (SID = XE))
    Unfortunately, when I use Oracle Net8 Easy Config to test the connection, an error message is prompted as follows:
    Connecting....
    The test did not succeed.
    ORA-03106: fatal two-task communication protocol error
    There may be an error in the fields entered
    or the server may not be ready for a connection.
    You can check the server and retry, or continue.
    After I google it, I still have no idea how to solve the problem. I would like to ask, could anyone mind providing some hints or solution to address the issues.
    Thanks for your assistance in advance.

    I don't believe the Net8 Easy Config (NEC) will create a compatible entry in the tnsnames.ora. I have Forms 6i running successfully against a 10g Express database, but I did not use the NEC - I created the entry myself. Here is the entry I use:
    XE=
      (DESCRIPTION=
        (ADDRESS=
          (PROTOCOL=TCP)
          (HOST=<<servername or IP address>>)
          (PORT=1521)
        (CONNECT_DATA=
          (SERVER=dedicated)
          (SERVICE_NAME=XE)
      )Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • LEADING or ORDERED hint in OWB 10gR2

    Hi,
    How does one add a LEADING or ORDERED hint to a mapping in OWB 10g R2?
    The usual way of adding a hint is to "Configure" the map and add the extraction or loading hint under the table (data source) operators. However, the hints in such a case are specific to table under consideration. A NO_INDEX or a PARALLEL hint can be applied under it.
    However, a LEADING or a ORDERED does not necessarily depend on the table but is common to the entire SQL. Although OWB allows attaching the LEADING or ORDERED hint under Map Configure > Table Operators > [Table Name] > Hints > Extraction Hints, it does not attach the correct table aliases.
    Has anyone encountered this problem before? If you've found a workaround, please share it.
    Thanks, JD

    Hi,
    In OWB 10.2 it's often not easy to set hints. Often it's only possible to set them correctly using workarounds :-(
    The most important is not where you define the hint in OWB but where OWB puts it in the generated code.
    So if you want to have the LEADIND or ORDERING hint in your code you could define it at the level of the target table under:
    Map Configure > Table Operators > [Target Table Name] > Hints > Loading Hints
    Another way to do it would be to generate a dummy filter (1=1) in the mapping and then to define the hint for this filter.
    For hints which are not related to a specific table I mostly used the trial-and-error method to find out where I have to define it in OWB.
    Good luck

  • More info needed about using wifi in high reflective enviroment

    I am looking for documents about using wifi in highly reflective enviroments: rooms with aluminium floor, walls and ceiling en very little materials that absorb rf. (cleanroom enviroment)
    Any hints are appreciated.

    Thanks for your reply Mat,
    The cleanroom enviroment (ASML semiconductor industry) is a large room about 30 * 60 meter and 7m high. In this room are smaller cabinets (about 20) where the actual work is done. Here you can see some pictures:
    http://www.brecon.nl/images/brecon_brochure.pdf
    In full production there are about 120 engineers working with their 802.11b/g equipped laptops.
    Every wall, floor, ceiling, door is made with aluminium sandwich panels. We have major troubles getting a reliable wifi enviroment, and also DECT and GSM telefony is hardly working at all.
    Right now we have 10 AP's is the large room, and we are contemplating installing 1 AP in every cabinet with low power setting and using attenuators. We are also considering the use of leaky coaxial cable.
    Migrating to 802.11N is not really an option since the clients are b/g equipped.
    I will upload a plan soon.

  • Using hint in hyperion query

    hi
    i m using hyperion verion 9.3.1.2 ..
    and i have problem where given query in request tab is taking lot of time to execute.
    i took the query log also saw the explain plan of query..
    when i chnged the index on which the query is executing (using hint) on sql promt the response time was improved drastically.
    please can any one let me know if i can make ue of that hint in hyperion ????
    thanks
    tushar

    If you are talking about Hyperion Interactive Reporting (IR) you can add hints. One quick way is to add a computed column to your request line and make it your first item requested. Put the hint in the computed item and process the query. If you want to do it another way, let me know if you are using IR.

  • How do i use HINT

    I tried to google but didn't find any good simple example of HINT.
    Can you guys give me a simple example on using HINT? Do i need to activate something in oracle to use it?
    Cheers.

    The first hint on HINT usage should be not use HINT.
    Then, what about Oracle online documentation search instead of googling :
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/sql_elements006.htm#SQLRF00219
    Nicolas.

  • Questions about Using APIs to import Bills and Routings - AND COSTS

    Hi Forum - the following is a back-and-forth with a customer about use of APIs - Inventory developer suggested I post the question here. Note the 2nd question - and thanks for any assistance.
    SR# 7332152.994 ALCOA
    Instructions given to ct:
    Q1 - Can I load the bill header and components at the same time?
    You should be able to load the bill header and components at the same time. Customer loads bill and component data inserting enough "other" data for each so that the bill sequence id will be derived. For the component record, the assembly item, org and alternate_bom_designator values will be used by BMCOIN to derive the bill_sequence_id.
    Example:
    INSERT INTO BOM_BILL_OF_MTLS_INTERFACE
    ORGANIZATION_CODE,
    ITEM_NUMBER,
    ALTERNATE_BOM_DESIGNATOR,
    PROCESS_FLAG,
    TRANSACTION_TYPE
    VALUES
    'M1',
    '&PARENT_ITEM',
    NULL,
    '1',
    'CREATE'
    INSERT INTO BOM_INVENTORY_COMPS_INTERFACE b
    ORGANIZATION_CODE,
    ASSEMBLY_ITEM_NUMBER,
    ALTERNATE_BOM_DESIGNATOR,
    COMPONENT_ITEM_NUMBER,
    OPERATION_SEQ_NUM,
    COMPONENT_QUANTITY,
    EFFECTIVITY_DATE,
    PROCESS_FLAG,
    TRANSACTION_TYPE
    VALUES
    'M1',
    '&PARENT_ITEM',
    NULL,
    '&COMPONENT_ITEM',
    1,
    1,
    trunc(SYSDATE),
    1,
    'CREATE'
    Hi Aruna, some additional information that may be useful:
    We can load/create the bill header and components at the same time using the scripts given (as above)
    Required Data for Creating a Routing : assembly_item_id,
    organization_id, routing_type, transaction_type, process_flag
    And following scripts can be used to load routing header and operations equences.
    INSERT INTO BOM_OP_ROUTINGS_INTERFACE
    (assembly_item_id,
    organization_id,
    routing_type,
    transaction_type,
    process_flag)
    VALUES (2255800,207,1,'Create',1);
    INSERT INTO BOM_OP_SEQUENCES_INTERFACE
    (assembly_item_id,
    organization_id,
    operation_seq_num,
    Department_code,
    effectivity_date,
    transaction_type,
    process_flag,
    operation_description)
    VALUES
    (2255800,207,100,'ASSEMBLY',
    to_date('24-FEB-2009'),'Create',1,
    'Paint Wagon');
    Q2: One more question, can an expense item can be added to the bill and can contribute the cost.
    As there is a confusion of what I asked, below I am rephrasing my question
    By an Expense Inventory Item, I mean an item that is just tracked for quantity only i.e.,Checking the attributes - Inventory Item, Stockable, Transactable under Inventory Tab and not checking the attribute - 'Inventory Asset Value'.
    My question here is, For these Expense Inventory Items, What is the difference between having the 'Costing enabled' attribute turned ON as opposed to having it UNCHECKED
    *Q3 I have tried to load the items and I could only load 1st level of components but could not load second level of bom at the same time.
    While inserting I have inserted plan level too.
    Please let me know if I have to do anything different to load second level.*
    Thanks
    James

    You may want to look at using the more4apps bill of materials wizard, an excel based solution for uploading assemblies and their components.

  • Advice on which Mac laptop to buy / Advice about using WIndows on it.

    I'd appreciate some advice on which replacement laptop to get for someone in my family who just needs e-mail, the Internet, and iPhoto--something simple, small, and portable, like the iBook or the MacBook Combo. However, he has just complicated matters by saying that he'd like to be able to use Windows on his new computer (yech).
    I don't know anything about using Windows on a Mac, not even whether this feature is now built into all Macs or not. A recent post I found on virtualization (February, 2006) quotes Microsoft as saying that Virtual PC won't run on an Intel-based Mac (MacBook), though it will on the iBook and the Powerbook.
    Here are the questions I'm trying to answer: (a) Is running Windows on the MacBook Combo an issue? If Microsoft doesn't make virtualization for the MacBook, are there other companies who do? (b) Are there features/lack of features on a MacBook that mean it makes more sense to get the least-expensive iBook instead or vice-versa? Again, simplicity and ease of use are the goal here, not state-of-the-art technology. (c) Can you even buy a new iBook or Powerbook any more, since the Apple website seems to feature only the MacBook?
    Thanks in advance for suggestions about any of this!
    Powerbook G4   Mac OS X (10.3.9)   15"

    For what your
    family member want to do the 1.83GHz MacBook will be
    just fine. Just be aware that if they want to write
    DVDs at any time they will have to purchase an
    external DVD writer.
    As for Windows, there are two options for running
    Windows on a …
    1) Use Apple's software, Boot Camp…
    http://www.apple.com/macosx/bootcamp/
    … which provides the ability to use you MacBook as a
    Windows computer. Please note that a restart will be
    required and only one OS will be available at any one
    time. Additionally it is suggested that at least a
    20GB larger drive be purchased to accomodate the
    Windows partition.
    2) Use Parallels…
    http://www.parallels.com/
    … which uses Virtualisation Technology. This allows
    Windows to be used under Mac OS X just like Virtual
    PC did with the PowerPC Macs. While this is far more
    convenient it's performance does not match that of
    Boot Camp although it is still rather snappy for more
    requirements. It does vost money where Boot Camp is
    free. Again, a larger drive is recommended.
    For both Parallels and Boot Camp Windows will operate
    at native PC speeds so do not consider an iBook or
    PowerBook.
    Thanks, that's helpful. One more question, now that I've looked at the MacBook more carefully: We use dial-up for e-mail and the Internet; this works very well for us and we have no immediate plans to change. Since the MacBook has no internal modem, would you or anyone else reading this say the Apple USB external modem works as advertised?
    I see that the Apple USB modem gets very mixed reviews--some people say it's fine, others seem to find it slower than the internal version, and several think it's a piece of junk.
    Would you (or anyone else reading this) have any experience using the Apple USB modem for dial-up connection? [That's not meant to be an insult. :-)] Would we now have to expect our dial-up connections to be slower than before? Or do we just have to be sure we have the right settings, compatible server, etc.? Or is the problem Apple's product, and would a 3rd-party product work better?
    Powerbook G4   Mac OS X (10.3.9)   15"

  • There is a lot of talk aout there about using a 27" iMac as a display with the mini displayport to displayport cable. It is so exciting! I am trying to connect a PC laptop with a VGA port to a 27" Dell Latitude D620?

    In 2010 there was a question about using a 27" iMac as a display with a Dell laptop.
    I am trying to connect a work Dell laptop Running Windows XP via a VGA cable to my personal iMac 27"
    running iMac 27", Mac OS X (10.6)
    Has anyone tried this or know if imac 27" Mini port with a VGA adapter can work?
    I apologize if I missed this discussion already
    Kind Regards
    Gilly

    Hi Gilly,
    I have no proof, but I think it will not work with an adapter, only Mini Display Port or Thunderbolt.

  • Needs help.....Please about using different classes

    I don't know how to use differenet classes.
    Please tell me how to write class to suit Start. This stuff me up. Please .... help me
    <<My program>>
    //Start
    public class Start
    {  private Artist[] Artists;
    private Record[] records;
    private Person[] Manager;
    private TextMenu makeMenu = new TextMenu();
    public static void main(String[] args)
         Start studio = new Start();
    studio.menu();
    public Start()
    {  //Person.Manager(ManagerName,HouseNumber,StreetNumber,PhoneNumber)
         Manager = new Person[1];
         Manager[0] = new Person("Yangfan",88,"Young ST",11118888);
         //Artist(GroupID,ArtistName,HouseNumber,StreetNumber,PhoneNumber)
         Artists = new Artist[5];
    Artists[0] = new Artist(1,"Backstreet Boys",58,"Music ST",99998888);
    Artists[1] = new Artist(2,"Santana",68,"Music ST",99998899);
    Artists[2] = new Artist(3,"Macy Gray",78,"Music ST",55558888);
    Artists[3] = new Artist(4,"Ricky Martin",88,"Music AVE",77778888);
    Artists[4] = new Artist(5,"Did Rock",55,"Music Road",66667777);
    //Record(RecordingID,RecordName,Artist,StartTime,FinishTime,RecordingDate,GuestArtist1,GuestArtist2)
    records = new Record[6];
    records[0] = new Record(1,"I want it that way",Artists[0],11,12,"05/08/2001",Artists[1],Artists[3]);
    records[1] = new Record(2,"Smooth",Artists[1],11,12,"05/08/2001",Artists[1],"");
    records[2] = new Record(3,"Do something",Artists[2],11,"05/08/2001",Artists[3],"");
    records[3] = new Record(4,"Livin La Vida Loca",Artists[3],11,12,"05/08/2001",Artists[1],Artists[3]);
    records[4] = new Record(5,"Bawitdaba",Artists[4],11,13,"05/08/2001",Artists[1],"");
    records[5] = new Record(6,"The one",Artists[0],11,14,"05/08/2001",Artists[1],"");
    public void menu()
    {  String[] choices = {">>>List Manager Details",">>>List All Artist Names",">>>List An Artist Telephone-Number",">>>Show Details For One Recording",">>>Add A New Recording",">>>List The Recording Costs For All Artists",">>>List Artist's Reocording",">>>Exit Program"};
    while (true)
    {  switch (makeMenu.getChoice(choices))
    {  case 1: showAllArtists();
    break;
    case 2: showAllRecords();
    break;
    case 3: System.exit(0);
    break;
    case 4: System.exit(0);
    break;
    case 5: System.exit(0);
    break;
    case 6: System.exit(0);
    break;
    case 7: System.exit(0);
    break;
    case 8: System.exit(0);
    break;
    default:
    public void showAllArtists()
    {  int numArtists = Artists.length;
    for(int i = 0; i < numArtists; i++)
    {  Artists[i].displayArtistDetails();
    public void showAllRecords()
    {  for (int i = 0; i < records.length; i++)
    {  System.out.println();
    records.printRecordDetails();
    <<Assignment>>
    Due - midnight, Wednesday August 22nd
    This assignment will test your knowledge of Java programming using classes, encapsulation and javadoc.
    The base requirements
    Write a complete Java class to manage a Digital Recording Studio. The studio wants to keep a list of all Artists that use the studio and also wishes to keep track of all Recordings that have been made. An important function of the program is to calculate the time spent making a recording and charge the Artist for the time used.
    You must create at least the following classes, Start, Studio, Person, Artist, Recording, Address. You may create other classes if needed as well
    Start will contain main(), create one instance of a Studio and execute a Menu of commands to test your code. Studio should contain a studio name, an array of Artist and an array of Recording plus the studio manager (a Person). Each Artist should contain the name of the group and an Address. Each Person will have a name and a home address. Each recording will have a Title (usually song title), an Artist (only one), and a list of guestArtist (they are Artist�s but will not receive royalties) the number of the CD the recording is stored on (numbers are numerical and recordings are saved on CD-R), plus the recording start and finish times for the recording session (suggest you use Java Date class � refer to the API). An Address will contain, house number (integers only), a street name and a telephone number. There is no need to store city and country.
    To enter a set of data for testing your program � main() should call a method in the Start class that will fill in a set of values by creating objects and filling in values by calling methods in each class. This is the ONLY method allowed to be longer than 1 page long � normally we would read the data from a file but there are no O-O principles that can be learnt with simply filling in data values. It is suggested to create say at least 4 Artist�s and 6 Recordings (at least one with 1 guest Artist and one with 2 guestArtist�s)
    A menu for testing your program should be provided (it is suggested to put the Menu into a separate class as you need at least 3 menus). While other commands are possible, only the following ones will receive marks.
    Menu commands needed are
    List the Managers name, address and telephone number
    List all Artist Names
    List an Artist telephone number (a sub menu showing valid Artist�s is required)
    Show all details for one Recording ( sub menu of valid Recordings will be needed and remember there can be more than one guestArtist)
    Add a new Recording, user will need to be prompted for all details.
    List the recording costs for all Artists � show each Artist on a separate line with their name and total amount, charge for using the studio is $1000 per hour or part thereof, example for a 1 hour and 10 minute recording the Artist will be billed for 2 hours.
    List all the Recording�s one Artist has worked on (sub menu of Artists needed), the list should show whether they were the Artist or a guestArtist
    Exit program
    Use fixed sizes for arrays, suggest 20 is suitable for all arrays. Java can handle dynamic data structures (where the number of elements can grow or shrink), but that is beyond a first assignment.
    Do NOT make ANY methods static - this defeats the Object Oriented approach and will result in ZERO marks for the entire assignment.
    Data MUST be encapsulated, this means that all the data relating to an object are to be stored INSIDE an object. None of the data detail is to be globally available within your program - hence do not store Artist names in either Studio or Recordings � just store a reference instead. Do NOT create ID numbers for Artists, you should use References instead � for many students this will be the hardest part as you have to use Objects, not program in a C style to solve the problem. Note that if there are any non-private data in classes then zero will given for marks for encapsulation.
    Good programming style is expected (see web page or lecture notes). In particular, you must use javadoc to generate a set of html pages for your classes. Make sure you use the special javadoc style comments in your source code. Marks will be granted for both using javadoc and also for including sensible javadoc comments on each class and each public method.
    What to Hand In
    Read the turnin page, basically the .java files, a readme.txt to tell the marker which file the program starts from plus the javadoc (html) files. Do NOT send .class files (if you do send these we will delete them and recompile your program), do NOT compress with gtar, tar, zip or use any other tool on your files. Turnin automatically compresses all your files into a single archive for us to mark.
    The simplest way to turnin all your files is to place all files in one directory then just use the *.* wildcard to turn in all files within that one directory.
    You must turnin all files that are not part of Java 1.3. In particular, you are allowed (actually encouraged) to use EasyIn or SavitchIn but should include the one you use in the files you submit. It is STRONGLY suggested that you copy all the files into another directory, test it works there by compiling and executing then turnin files from that directory. A common problem is students adding comments at the last minute then not testing if it still compiles. The assignment will be marked as submitted � no asking later for leniency because you added comments at the last minute and failed to check if it still worked.
    If the tutors are unable to compile your submission, they will mark the source code but you will lose all the execution marks. Sorry, but it is your responsibility to test then hand in all files.
    Comments
    For CS807 students, this program should be fairly easy if it was to be programmed in C (you would use several struct). The real art here is to change over to programming objects. Data is contained in an object and is not global. This idea is essential to using Java effectively and is termed encapsulation. Instead of using function(data), you use objectName.method( ). Effectively you switch the data and functions around, the data has a method (function) attached to it, not the other way around as in C (where you have a function and send data to it).
    While there will be some marks for execution, the majority of the marks will be given for how well you write your code (including comments and documentation) and for how well you used O-O principles. Programs written in a C style with most of the code in one class or using static will receive ZERO marks regardless of how well they work.
    You are responsible for checking your turnin by reading the messages turnin responds with. Failure to read these messages will not be an acceptable excuse for submitting an incorrect assignment. About 2% of assignments sent to turnin are unreadable (usually empty) and obtain 0.
    Late submissions
    Late submissions will only be accepted with valid reasons for being late. All requests for assignment extensions must be made via email to the lecturer. Replies for acceptance or refusal will made by email. Instant replies are unrealistic (there is usually a flood of queries into my mail box around assignment due dates) and the best advice is to ask at least 4 days in advance so that you will have a reasonable chance of getting a timely reply and allow yourself enough time to submit something on time if the extension is not granted.
    ALL late submissions will be marked LAST and will NOT be sent to tutors for marking until all other assignments have been marked. As an example, if you submit late and your assignment is not yet marked by the time assignment 2 is due then it will be pushed to the end of the marking pile as the assignments that were submitted on time for assignment 2 will take priority.
    If you make a second submission after the submission date, only the first submission will be marked. We will not mark assignments twice! You can update your submission BEFORE the submission date if you need to - this will just overwrite the first submission. The latest time for a late submission is 5pm on the Wednesday after the due date. This is because, either a solution will be handed out at that lecture or details of the assignment will be discussed at the lecture. I cannot accept any assignment submissions after that time for any reason at all including medical or other valid reasons. For those who are given permission to be later than the maximum submission time � a different assignment will be handed out. Remember, if you decide to submit late you are VERY UNLIKELY to receive feedback on your assignments during semester.
    Assignments will be removed from turnin and archived elsewhere then forwarded to tutors for marking on the morning after the assignment is due. A different tutor will mark each of your assignments � do not expect the tutor you see at the tutorials to be your marker.
    Marks will be returned via email to your computer science yallara account � ideally within 2 weeks. I will send marks out when I receive them so do not send email asking where your marks are just because a friend has theirs. If you want your email forwarded to an external account, then place a valid .forward file into your yallara account. The Help Desk on level 10 can assist you in setting this up if you do not know how to do it.

    I have seen other people who have blatantly asked for
    other people to do their homework for them, but you
    are the first person I've seen to actually cut and
    paste the entire assignment as it was handed to you.
    Amazing.
    Well, unlike some of the people you're talking about, it seems like zyangfan did at least take a stab at it himself, and does have a question that is somewhat more sepcific that "please do this homework for me."
    Zyangfan,
    marendoj is right, though. Posting the entire assignment is kind of tacky. If you want to post some of it to show us what you're trying to do, please trim it down to the essential points. We don't need to see all the instructor's policies and such.
    Anyway, let me see if I understand what you're asking. You said that you know how to write the code, but only by putting it all in one class, is that right? What part about using separate classes do you not understand? Do you not know how to make code in one class aware that the other class exists? Do you not know how code in class A can call a method in class B?
    Please be a bit more specifice about what you don't understand. And at least try using multiple classes, then when you can't figure out why something doesn't work, explain what you did, and what you think should have happened, and what did happen instead.
    To get you started on the basics (and this should have been covered in your course), you write the code for two classes just like for one class. That is, for class A, you create a file A.java and compile it to A.class. For class B, you create a file B.java and compile it to B.class. Given how rudimentary you question is, we'll skip packages for now. Just put all your class files in the same directory, and don't declare packages in the .java files.
    To call a method in class B from code that's in class A, you'll need an object of class B. You instantiate a B, and then call its methods.
    public class B {
      int count;
      public B() { // constructor
      public void increment() {
        count++;
    public class A {
      public static void main(String args[]) {
        B b = new B();
        b.increment();
    }Is this what you were asking?

  • After updating my iPad recently, I can no longer use it to present PPTs using a TV monitor that always previously worked. The display mentions something about using AirPlay which I am not using or trying to. Suggestions please?

    After updating my iPad recently, I can no longer use it to present PPTs using a TV monitor that always previously worked. The display mentions something about using AirPlay which I am not using or trying to. Suggestions please? I am currently using iOs 7.0 on this iPad and I never had a lick of trouble until aetr this update. Anything would help. Thanks.

    I'm adding screen shots taken from this afternoon showing connection that varied from non-existent to 1X.

  • Advice about using the laptop with closed lid while connected to external display

    Hello all HP forum members!
    I have an ENVY 17 with Win8.1 64bit, a great laptop, but I need an advice about using it while connected via HDMI cable to an external display (TV).
    When I play heavy 3D games, the computer produces more heat than usual (of course this is normal), but doing so with closed lid, could this harm the  display in some way, as a result of the heat?
    Thanks!

    Hi @VVel ,
    Thank you for visiting the HP Support Forums and Welcome. It is a great site for information and questions. I have looked into your issue about your HP ENVY 17 Notebook and issue with keeping the Notebook on while closing the lid. Here is a document on changing the Power option.
    Control Panel - Power Options - upper left - Choose what closing the lid does.
    Change Plan Settings and also check Advanced Settings. Make sure you do this for both battery and power.
    Hope this helps.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Thinking about using Mac Mini's as desktops for 20 employee business.  Pro's Vs. Con's

    Thinking about using Mac Mini's as desktops for 20 employee business.  Pro's Vs. Con's

    Your best bet would be to buy a single 2012 MacMini Server model that you can use to manage the balance of the other machines. Either that or upgrade one of the MM's to OS X Yosemite Server . You can find information about the Server edition at:
    https://www.apple.com/osx/server/
    However I would STRONGLY recommend visiting your local Apple Store and ask to speak to their business specialist, they are trained to manage customer needs such as yours.
    The major advantage of using Macs over any PC is the stability of OS X itself and the overall quality of support that you will never get with HP.

Maybe you are looking for