Hi i need help with my linked list

hello
im having trouble with my list
this is where i create the studentlinked list. within my constructor for my college.
public class MyCollege {
     private int capacity;
     public MyCollege(){
          StudentLinkedList studentList = new StudentLinkedList();
     }now my problem is in my add student method
here it is.
at the end of the method where i add the student to the linked list (studentList.add(aStudent);)is my problem. it says that studentList cannot be resolved.
i understand that it cant find studentList. but i am creating it.
why isnt it working???????????????????
public static void main(String[] args) {
          MyCollege mc1 = new MyCollege();
     public void addStudent(int i){
          try{
               Student aStudent = new Student();
               String name,studentNumber, programmeCode;
               int yearBegan;
               if(i < capacity){
                    // this defines the buffer that will hold the data to be input
                    BufferedReader theDataStream;
                    theDataStream = new BufferedReader(new InputStreamReader(System.in));
                    //enter the details of the student
                    System.out.println("Enter in the name of the student followed by their student number");
                    System.out.println("followed by the year they began in the college a and then the course code");
                    System.out.println(" hit enter after each one");
                    name = theDataStream.readLine();
                    studentNumber = theDataStream.readLine();
                    yearBegan = Integer.parseInt(theDataStream.readLine());
                    programmeCode = theDataStream.readLine();
                    aStudent.setName(name);
                    aStudent.setStudentNumber(studentNumber);
                    aStudent.setYearBegan(yearBegan);
                    aStudent.setProgrammeCode(programmeCode);
                    studentList.add(aStudent);
               }//end if
          }//end try
          catch(IOException e) {
               System.out.println(e.getMessage());
     }

cheers got it striaght away
     private int capacity;
     private StudentLinkedList studentList;
     

Similar Messages

  • I need help with circular linked list

    Hi,
    I need help with my code. when I run it I only get the 3 showing and this is what Im supposed to ouput
    -> 9 -> 3 -> 7
    empty false
    9
    empty false
    3
    -> 7
    empty false
    Can someone take a look at it and tell me what I'm doing wrong. I could nto figure it out.
    Thanks.This is my code
    / A circular linked list class with a dummy tail
    public class CLL{
         CLLNode tail;
         public CLL( ){
              tail = new CLLNode(0,null); // node to be dummy tail
              tail.next = tail;
         public String toString( ){
         // fill this in. It should print in a format like
         // -> 3 -> 5 -> 7
    if(tail==null)return "( )";
    CLLNode temp = tail.next;
    String retval = "-> ";
         for(int i = 0; i < -999; i++)
    do{
    retval = (retval + temp.toString() + " ");
    temp = temp.next;
    }while(temp!=tail.next);
    retval+= "";}
    return retval;
         public boolean isEmpty( ){
         // fill in here
         if(tail.next == null)
              return true;
         else{
         return false;
         // insert Token tok at end of list. Old dummy becomes last real node
         // and new dummy created
         public void addAtTail(int num){
         // fill in here
         if (tail == null)
                   tail.data = num;
              else
                   CLLNode n = new CLLNode(num, null);
                   n.next = tail.next;
                   tail.next = n;
                   tail = n;
         public void addAtHead(int num){
         // fill in here
         if(tail == null)
              CLLNode l = new CLLNode(num, null);
              l.next = tail;
              tail =l;
         if(tail!=null)
              CLLNode l = new CLLNode(num, null);
              tail.next = l;
              l.next = tail;
              tail = l;
         public int removeHead( ){
         // fill in here
         int num;
         if(tail.next!= null)
              tail = tail.next.next;
              //removeHead(tail.next);
              tail.next.next = tail.next;
         return tail.next.data;
         public static void main(String args[ ]){
              CLL cll = new CLL ( );
              cll.addAtTail(9);
              cll.addAtTail(3);
              cll.addAtTail(7);
              System.out.println(cll);          
              System.out.println("empty " + cll.isEmpty( ));
              System.out.println(cll.removeHead( ));          
              System.out.println("empty " + cll.isEmpty( ));
              System.out.println(cll.removeHead( ));          
              System.out.println(cll);          
              System.out.println("empty " + cll.isEmpty( ));
    class CLLNode{
         int data;
         CLLNode next;
         public CLLNode(int dta, CLLNode nxt){
              data = dta;
              next = nxt;
    }

    I'm not going thru all the code to just "fix it for you". But I do see one glaringly obvious mistake:
    for(int i = 0; i < -999; i++)That says:
    1) Initialize i to 0
    2) while i is less than -999, do something
    Since it is initially 0, it will never enter that loop body.

  • Need help with drop down list in parameters

    Hi All,
    I have the following data set:
    DEPT1     DEPT2     DEPT3 DEPT4
    Commissioner's Office     Finance     Accounting     Accounts Payable
    Commissioner's Office     Finance     Accounting     Fiscal Analysis & Repo
    Commissioner's Office     Finance     Accounting     
    Commissioner's Office     Planning,Asset Mgt     Asset Management     Inventory & Tracking
    Commissioner's Office     Planning,Asset Mgt     Asset Management     Mobility & Congestion
    Commissioner's Office     Planning,Asset Mgt     Asset Management     Roadway Safety
    Commissioner's Office     Planning,Asset Mgt     Asset Management     
    Commissioner's Office     DesignProj Mgt & Tec     Bridge Dsgn Insp Hyd     
    In plus i have four parameters with searchlight options, the problem is when i select "Finance" from DEPT2 and in the next selection level i'm seeing all the departments "Accounting,Asset Management and Bridge Dsgn Insp Hyd" insted of just "Accounting". What i want is if i select a department in DEPT2, in the next drop down list(DEPT3) i want to see only the departement corresponding to the one i selected in dept2. Please need help.
    Thanks

    Hi
    First of all you need to be using Discoverer 10g or 11g Plus not 9.0.4. Assuming you have the right version you need to present the parameters in the correct order. You can change the order on the parameters screen by selecting Tools | Parameters from the toolbar. You then use the Move Up and Move Down buttons to place them in the right order so that DEPT1 is offered first, followed by DEPT2, then DEPT3 and then DEPT4.
    Next, you need to check the radion button on the bottom of the right-hand side that allows linking of parameters then you make DEPT2 dependent upon DEPT1, with DEPT3 dependent upon DEPT2 and so on.
    While this works without hierarchies it works best when you have a hierarchy in place and even better when there is a composite index on the 4 items.
    Best wishes
    Michael

  • Help with Library link lists ..

    Hi ,
    I am working with Scott Mazur on a incorporating 8.1.7 in our code bace for our next product release. I am having problems with defining the library link list needed for builds. In the documentation it makes referance to $ORACLE_HOME/precomp/demo/proc which I cannot find. I have installed the 8.1.7 on 3 platforms (Solaris, AIX and NT ) and none of the system have this information. Can you please point me to where I may find some help in this area. We are in a critical path right now so I would appreciate any help you could give me. The sooner the better.
    Thank you for your time and help ,
    Cheryl Pollock
    Lockheed Martin Global Telecommunications .
    Formtek
    Pittsburgh office .
    (412) 937-4970
    null

    You actually shouldn't try to get the library link lists directly. Rather, you should use the $ORACLE_HOME/rdbms/demo/demo_rdbms.mk makefile like this:
    make -f $ORACLE_HOME/rdbms/demo/demo_rdbms.mk build EXE=yourexecutable OBJS="object list"
    where yourexecutable is the name for your executable and the OBJS= includes a quoted list of all your object and library files.
    null

  • Need help with href link that submits

    I need some help. I dynamically create HTML that displays a horizontal row of page numbers in Position 8. Although they look like page numbers to the use, are not true Apex pages, but rather "logical" pages that change the content in a single Apex physical page. The URL that gets returned from the HREF sets a variable in the page. Then I need a submit to occur so that all my "after submit" processes run, and the page re-renders. Is this even possible? I've been unsuccessful so far.
    Thanks.

    Martin,
    Two things...
    1. Be careful about "hard coding" values in a link. I don't know if you've already done this, but the link should use substitution variables as so...
    f?p=&app_id.:&app_page_id.:&app_session.::NO::P94000_LOGICAL_PAGE_NUM:2
    When the page renders each substitution variable will be replaced with the correct value.
    2. Not that it really matters, but you named your variable starting with P94000. Typically this would indicate the variable appears on page 94000. Is this the case?
    The problem with what you want to do is that it can be done so many different ways. Each way is not necessarily better than the other. Number 1 above is using a link in the traditional sense. It's a link to the same page (achieved by using app_page_id). It will not submit the page but it contains enough information to set the value of a variable and you can code off of that variable's value.
    You could use a JavaScript trick, but I wouldn't bother for this. In addition, you could use the request value over a variable value to feed off of but since you already started with the variable I'd stick with that.
    The first thing you need to do is figure out if your variables value is being set with the link... Let me know if you have more questions.
    Regards,
    Dan

  • No Qualified People Here?   Need Help with Contact - Linking Email

    I have two pages - XML, I'll post photos . Just need to link it to my email and also I page to link social buttons.

    It is getting late here, nearly 3:00 am.
    I'll get back to you later on. But I am still in a quandary regarding the question. What I have now is
    you post photos, presumably to the website
    you send an email to yourself with a link to the image
    somewhere (please state where) you want social media images with their relative links
    I just want to link it to my own email - probably refers to point 2 above
    so when someone sends it to me - someone sends what to you. Do you post the iphoto or does it get uploaded by someone else.
    we need to disregard the XML-file

  • Need help with connected / linked pop-up menus

    I want to select a preset.
    What I did is create 2 pop-up menus. The first with the preset folders and the second with the presets from that folder.
    Each pop-up group has a pop-up and a static field with the current choise.
    After selecting a different value from the first pop-up menu I want to have the second popup menu filled with the new, right presets of that folder.
    The first time everything works correct.
    However when selecting a different folder I see that the "preset table"  is filled with the correct new preset of that folder. Also the static field below the second pop-up menu shows the first value of the correct new presets. But the second pop-up menu itself still contains the presets of the first folder and not the new folder.
    Yet in the Observer I see that the preset table contains the right and new presets.
    My code is below.
    I based it on the sample in the SDK manual.
    Question: How can I update the second pop-up menu so that the pop-up menu shows the right presets.
    Code below
    local LrApplication = import 'LrApplication'
    local LrPathUtils = import 'LrPathUtils'
    local LrFileUtils = import 'LrFileUtils'
    local LrBinding = import "LrBinding"
    local LrDialogs = import "LrDialogs"local LrFunctionContext = import "LrFunctionContext"
    local LrView = import "LrView"
    local bind = LrView.bind -- shortcut for bind() method
    --     https://github.com/kikito/inspect.lua
    local inspect = require 'inspect'
    local logFilename = 'PresetList'
    local myLogger = import 'LrLogger'( logFilename )
    myLogger:enable( "logfile" )
    local logPath
    Name          emptyLogFile
    Purpose          Clears the existing log file.
    From cookbook: http://cookbooks.adobe.com/post_Clearing_your_logfile_automatically-19677.html
    function emptyLogFile()
    --local myLogger = import 'LrLogger'( 'Stash' )
    myLogger:disable()
    logPath = LrPathUtils.child(LrPathUtils.getStandardFilePath('documents'), logFilename .. ".log")
    if LrFileUtils.exists( logPath ) then
    local success, reason = LrFileUtils.delete( logPath )
    if not success then
    logger:error("Error deleting existing logfile!" .. reason)
    end
    end
    myLogger:enable( "logfile" )
    end
    Name          getLocationLogFile.
    Purpose          Returns the full path of the current log file.
    function getLocationLogFile()
    return logPath
    end
    local function getPresetFolders()
    -- Get all folders with presets
        local lrPresetFolders = LrApplication.developPresetFolders()
        local presetFolderCache = {}
    local record = {}
        for i, fo in ipairs( lrPresetFolders ) do
    record = {title = fo:getName(), value = fo }
    --record = {title = fo:getName(), value = fo:getName() }
    --myLogger:info( "folder name = " .. fo:getName() )
    table.insert ( presetFolderCache, record )
    end
    --     myLogger:info("Voor de listing")
    --     myLogger:info("preset Folders : " .. inspect (  presetFolderCache ) )
    return presetFolderCache
    end
    local function getPresets ( folderObject )
    local presets = folderObject:getDevelopPresets()
    local presetCache = {}
    local record = {}
    for j, p in ipairs( presets ) do
    record = {title = p:getName(), value = p:getName() }
    --record = {title = p:getName(), value = p:getName() }
    myLogger:info( "getPresets = " .. p:getName() )
    table.insert ( presetCache, record )
    end
    myLogger:info("presets : " .. inspect (  presetCache ) )
    return presetCache
    end
    local function ChoosePreset()
    emptyLogFile()
    local presetFolders = getPresetFolders()
    local currentPresetFolder = presetFolders[1]["value"]
    local presets = getPresets ( currentPresetFolder )
    myLogger:info(presets)
    --     myLogger:info("preset Folders : " .. inspect (  presetFolders ) )
    LrFunctionContext.callWithContext( 'Pop-up example', function( context )
    local f = LrView.osFactory() -- obtain view factory
    local properties = LrBinding.makePropertyTable( context ) -- make prop table
    -- create some keys with initial values
    properties.presetFolder = presetFolders[1]["value"] -- for radio buttons and pop-up menu
    properties.preset = presets[1]["value"]
    properties:addObserver( 'presetFolder', function( properties, key, newValue )
    myLogger:info("Observer - get preset list" )
    currentPresetFolder = properties.presetFolder
    presets = getPresets ( currentPresetFolder )
    myLogger:info(presets)
    myLogger:info("Observer - Preset table: " .. inspect ( presets ) )
    --     Set the new value
    properties.preset = presets[1]["value"]
    myLogger:info("Observer: " .. presets[1]["title"] )
    end )
    --     myLogger:info("presetFolder = " .. properties.presetFolder )
    --     myLogger:info("preset = " .. properties.preset )
    local contents = f:column { -- create view hierarchy
    fill_horizontal = 1,
    spacing = f:control_spacing(),
    bind_to_object = properties, -- default bound table is the one we made
    f:group_box {
    title = "Preset folders",
    fill_horizontal = 1,
    spacing = f:control_spacing(),
    f:popup_menu {
    value = bind 'presetFolder', -- current value bound to same key as static text
    items = presetFolders
    f:static_text {
    fill_horizontal = 1,
    title = bind 'presetFolder', -- bound to same key as current selection
    f:group_box {
    title = "Presets",
    fill_horizontal = 1,
    spacing = f:control_spacing(),
    f:popup_menu {
    value = bind 'preset', -- current value bound to same key as static text
    items = presets
    --     items = getPresets ( currentPresetFolder )
    f:static_text {
    fill_horizontal = 1,
    title = bind 'preset', -- bound to same key as current selection
    local result = LrDialogs.presentModalDialog( -- invoke the dialog
    title = "Select preset",
    contents = contents,
    end
    end
    -- Now display the dialogs
    ChoosePreset()

    That should work because you are likely to be creating a new table each time computeNewItems() executes..
    Sometime the bind function doesn't recognise whether the contents of a table bound to a property changes. So if you use something like this:
    local myItems = computeNewItems() -- compute array of tables with title and value members
    properties['myPresetItems'] = myItems --  assign to bound member of property table.
    it will work the first time. If you then do this:
    myItems = computeNewItems() -- compute array of tables with title and value members but using existing variable
    properties['myPresetItems'] = myItems --  assign to bound member of property table. Change might not be noticed by bind.
    In this instance you would need to reassign the same value again. i.e.
    properties['myPresetItems'] = myItems --  assign to bound member of property table again to force bind to check for table values.
    Setting a property with the same value twice seems to trick bind into checking to see whether you have bound a table. I'm not sure whether this trick is only required on some versions of LR (e.g. LR 2) or only on one of the platforms, but even if it isn't required in LR 5 it will help improve your backwards compatibility and it shouldn't cause any harm to continue using it in LR 5.
    Matt

  • I need help with drop down lists

    I have a form that does not have lots of space and I want to use drop down lists to fill in specific information that describes site conditions.  The problem I have is that the drop down list is only set up for a single line and that is not enough space for what I want in the drop down list.  In other words, I have items that are several sentences.   I have seen some descriptions of creating a drop down list that then fills in a text box that has multiple lines.  Unfortunately, that is not an ideal solution for me.  I just want the drop down list to select a single phrase.  Here is an example of what I want to be able to select in the drop down.
    The water heater spilled flue gases in excess of 5 minutes under worst case conditions.  The combusiton testing was completed with in 30 days of the invoice submittal. 
    The form does not allow me to create a field that goes all the way across the page so it needs to look something like this:
    The water heater spilled flue gases in excess of 5 minutes
    under worst case conditions.  The combusiton testing was
    completed with in 30 days of the invoice submittal.
    Any help is greatly appriciated.

    Thanks for responding.
    I have three items that are very similar in length and text for each drop down.  There are 9 drop downs right now.  I am using the drop downs to fill in a form that is used by several people and I want to keep things as simple as possible.  Associated with the drop down already is a check box.  When the check box is checked, it fills in a text box with a score (1 point, 5 points, etc).  That score then tallys for a total with all the other scores in another text box.  Using a drop box to fill in a text box is just getting to busy and than I have to distinguish each drop down item so it is clear which text you are selecting.

  • Need Help with hijacked contact lists

    Hello all, I am new here, so please forgive me if I'm posting to the wrong board...didn't really see anything more appropriate. I have a problem with a hijacked contact list:
    I have three email accounts being forwarded to my BB Curve 8530.  Two from Yahoo and one from AOL.  In each of these accounts (when accessed directly from yahoo.com or aol.com) have different contacts.  Not all of these contacts are in my BB contact list.  The other day, one of my yahoo accounts was somehow hacked, and resulted in one of those spam "drugs for sale" emails being sent to people in my contact list.  Well, when I investigated, I discovered that actually, someone who is not even in that particular accounts contact list, but another account.  How is this possible?
    If that is confusing, here's a better summary (using fake email addresses):
    [email protected] sent a bogus email message to [email protected]
    but, [email protected] is not in [email protected]'s address book.  it is in [email protected]  [email protected] is not listed in my BB device's contact list.
    The only thing I can think os is somehow the BB was hacked, and someone was able to go through all linked contact lists, and send an email across all connected accounts.
    How was this able to happen?  what can I do to stop it?
    thanks!
    Lee

    This is the Welcome and Introductions section, so Greetings, and welcome!
    The 8500 model section would be perfect for your questions,so we'll get it move there.
    Meanwhile,
    leevalon wrote:
    The only thing I can think os is somehow the BB was hacked, and someone was able to go through all linked contact lists, and send an email across all connected accounts.
    Sorry, not possible... UNLESS you gave your BlackBerry to someone to use for a while, during which time they spammed all your contacts. Did you?
    Do you have a Security password set on the device? If you are afraid of the above happening, setting the password will just that impossible.
    But it wasn't hacked.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Need help with different link styles on same page

    Hello,
    I'm using Dreamweaver CS4 on a PC.
    I have searched through a lot of posts over the last couple of days, I've tried the projectseven.com tutorial, google'd, etc. but still can't figure it out.....
    All I want to do is apply a different link colour to some links in the footer of my page. Elsewhere through the site I have set the colour to blue (for the link) and orange (for the hover) - for the footer links I want the link to be white and the hover colour to stay orange.
    The problem with the projectseven tutorial is that it doesn't seem to apply to CS4 and I kept getting error messages when trying to apply a new CSS rule - there's no Class|Tag|Advanced options as per the instructions ....
    I've copied the code of my page to this. The links which I want to apply a different style to are contained in the Div Tag called "Footer-Navigation-Bar" .
    Could someone please give me some instructions or point me in the right direction please??
    Many thanks,
    Vickie
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!-- saved from url=(0014)about:internet -->
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Subscribe to Family Australia - it's free!</title>
    <!-- TemplateEndEditable -->
    <link href="../family-subscribe.css" rel="stylesheet" type="text/css" />
    <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <style type="text/css">
    <!--
    a:link {
    color: #30C;
    text-decoration: none;
    a:hover {
    color: #F30;
    text-decoration: none;
    a:visited {
    text-decoration: none;
    a:active {
    text-decoration: none;
    -->
    </style></head>
    <body>
    <div id="container">
      <div id="banner">
        <ul id="family-subscribe-menu" class="MenuBarHorizontal">
          <li><a href="../index.html">Home</a>      </li>
          <li><a href="../subscribe.html">Subscribe</a></li>
          <li><a href="../family-advertise.html">Advertise</a>      </li>
          <li><a href="../family-articles.html">Articles</a></li>
    <li><a href="../family-sign-in.html">Issues</a></li>
          <li><a href="../family-contribute.html">Contribute</a></li>
    <li><a href="../family-contact.html">Contact</a></li>
        </ul>
    </div>
        <div id="sidebar"><a href="../family-sign-in.html"><img src="../images/launch-issue.jpg" alt="launch-issue" width="220" height="380" hspace="4" /></a>
          <div id="sidebar-image2">
            <p><img src="../images/Sleeping bag for web.jpg" width="220" height="151" alt="sleeping-bag" /></p>
            <p>Kozy Koala™ Pillow Sleeper is ideal for those  summer nights when the kids want to sleep out or when you go camping. The  all-in-one pillow camper consists of …. [MORE]</p>
          </div>
          <div id="sidebar-image3">
            <p><img src="../images/solrx for web.jpg" width="220" height="164" alt="sunscreen" /></p>
          SolRX® Sunscreens are very sweat and water  resistant – ideal for anyone who leads an active outdoor lifestyle … whether  you’re in the water or not! [MORE]</div>
      </div>
        <!-- TemplateBeginEditable name="main-content-region" -->
        <div id="main-content">main content</div>
        <!-- TemplateEndEditable -->
      <div id="footer">
    <div id="footer-navigation-bar"><a href="../family-about.html">about</a> | <a href="../family-advertise.html">advertise</a> | <a href="../family-contribute.html">contribute</a> | <a href="../family-contact.html">contact</a> | <a href="../family-unsubscribe.html">unsubscribe</a></div>
          <div id="footer-text">Family Australia | ABN 33150685385 | For all advertising enquiries please contact <a href="mailto:[email protected]">[email protected]</a><br />
    Copyright © 2010 Family Australia. All rights reserved.
    </div>
      </div>
      </div>
    </div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("family-subscribe-menu", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>

    The links which I want to apply a different style to are contained in the Div Tag called "Footer-Navigation-Bar" .
    a:link {
    color: #30C;
    text-decoration: none;
    a:hover {
    color: #F30;
    text-decoration: none;
    a:visited {
    text-decoration: none;
    a:active {
    text-decoration: none;
    Hello
    You can see above the CSS that applies to your links.  If you have links that you want to style in a diferent way, just write the rule Like this:
    #Footer-Navigation-Bar a:link {
    color: red;
    text-decoration: none;
    Or whatever.  There are other ways but this will do you as you already have those links you want styled differently in a div with its own ID.  The new rule should come after the other rules in your CSS I think to make sure of the cascade although thinking about it,  there's something called specificity in CSS which means that the rule that I suggest will win out anyway.  All that you are doing in my suggestion is selecting the a:link that is a descendant of an element with that particular ID.
    I hope that helps.  I'm a bit of a novice and might have got a bit jumbled with the cascade/specficity thing but hey, I reckon that will get you where you want to go....
    Martin.

  • Need help with 'post link to facebook' button in php

    hi guys,
    thanks for the interest in my post...
    i want to have a button at the bottom of my main page layout (main.php) of the facebook logo where visitors can click on it to submit the page as a link to facebook.
    how can i set the button so it will post the link to whichever page the visitor is viewing i.e. when they are reading a news article the button action will post main.php?id=news and when they are on home, main.php?id=home.
    thank you very much and i hope to hear form you.
    m

    Quote from: tigers71 on 14-December-14, 00:47:36
    If anyone can link the customerchecklist.doc on the MSI website I would greatly appreciate it.  I need to RMA my laptop, and while I printed out the RMA form, I didn't print out the customer checklist document that goes with it.
    And as the original email was in my spam folder, I must have deleted it, so I don't have the link to the page the checklist is on.       I had an old link to the checklist from when I had to RMA my laptop last year, but that is no longer valid.   So if anyone has had a recent RMA of their laptop, if you can post the link, or send it to me in PM, many thanks.
    if you bought laptop from local store then you can just go to local store and RMA it there they will then pack it in and send it away to a MSI service in your country or maybe nearby country that can do repairs.

  • Help with Stacked linked lists with nodes.

    I have 5 elements, { object1, object2, object3, object4, object5}; and I add then to the stack from object1 to object5 (from left to right). So the head node > object 5 > object 4 > object3> object2 > object1. (> represents points to.) So i made a method to get the nth element of the list in the order I input it to the list. The method is called ElementsAt(int i). But some reason, it always returns the last object in the list. I included my entire code because there may be something wrong somewhere else that maybe causing it.
    Note: There is also a list interface.
    public class MyList implements List {
         * The head node.
         private Node head;
         * The node it is currently reading
         private Node curr;
         * The previous node it has read.
         private Node prev;
         * A blank Node
         private Node blank;
         * The number of elements in the list
         private int numItems;
         * Default constructor
         public MyList() {
              numItems = 0;
              head = null;
         * Add an element in front of the list.
         * @param o The object to be added.
         public void addFront(Object o){
              if(head == null) {
                   head = new Node (o, null);
              else{
                   blank = new Node(o,null);
                   curr = head;
                   while (curr != null){
                        prev = curr;
                        curr = curr.getNext();
                   blank.setNext(curr);
                   prev.setNext(blank);
              numItems +=1;
         * Add an element in the back of the list.
         * @param o The object to be added.
         public void addBack(Object o){
              curr = head;
              if (head == null){
                   head = new Node(o ,null);
              else {
                   head = new Node(o, curr);
              numItems +=1;
         * Determine whether the list contains a certain object.
         * @param o The object it searches through the list to
         * see if it is present.
         * @ returns a boolean that describes whether object is
         * in the list.
         public boolean contains(Object o){
              boolean present = false;
              curr = head;
              while ((curr != null) && (present != true)){
                   present = (o.equals(curr.getElement()));
                   curr.setNext(curr.getNext());
              return present;
         /** Remove an object in the list if it is in the list.
         * @param o The object it wants to remove.
         public void remove(Object o){
              if(head ==null){
                   return ;
              if(head.getElement().equals(o)){
                   head = head.getNext();
                   numItems -=1;
              else{
                   prev = head;
                   curr = head.getNext();
                   while ((curr!=null) && (curr.getElement() !=o)){
                        prev = curr;
                        curr = curr.getNext();
                   if (curr!=null){
                        blank = curr.getNext();
                        prev.setNext(blank);
                        numItems-=1;
         /** Determine what object is at the nth place of the list.
         * @param i the nth place of the list
         * if the number is higher than the list, it is invalid.
         * @returns The element of the nth position of the list.
         public Object elementAt(int i){
              curr = head;
              Object blank = "";
              if ( i > numItems){
                   return null;
              else{
                   i = numItems - i;
                   for (int j=1; j<=i; j++){
                        if(curr!=null){
                             blank = curr.getElement();
                             curr = curr.getNext();
                   return blank;
         /** Determine the size of the list.
         * @returns The size of the list
         public int size() {
              return numItems ;
         /** Makes the list empty
         public void makeEmpty() {
              head = new Node(null,null);
              numItems = 0;
         /** Returns The list as a string.
         * @returns String containing all elemnts of the list.
         public String toString(){
              String sum = "";
              curr = head.getNext();
              blank = head;
              prev = head;
              if(curr==null){
                   prev.setNext(null);
                   curr=prev;
              while(curr != null)
                   if(curr.getNext() ==null){
                        sum += "\n" + curr.getElement();
                        curr.setNext(null);
                   if(curr.getNext()==null)
                        prev.setNext(null);
                        prev = blank;
                        curr = prev.getNext();
                   else{
                        curr = curr.getNext();
                        prev= prev.getNext();
              if (head.getElement() !=null)
              sum +="\n" + head.getElement();
              return sum;
    }this is the program i use to test it.
    public class MyListTester {
         public static void main (String [] args)
              List list = new MyList();
              String one = "Object One";
              String two = "Object Two";
              String three = "Object Three";
              int five = 5;
              list.addFront(one);
              list.addFront(two);
              list.addFront(three);
              list.addFront(five);
              System.out.println(list);
              System.out.println();
              System.out.println(list.size());
              System.out.println(list.elementAt(2));
                    //this should print out object Two, but doesn't
              System.out.println(list.elementAt(3));
                    //this should print out object Three, but doesn't
    }

    chuang7 wrote:
    So i made a method to get the nth element of the list in the order I input it to the list.
    * The node it is currently reading
    private Node curr;
    * The previous node it has read.
    These ('curr' and 'prev') should be local variables in the methods that need them, not instance variables.
    public void addFront(Object o)
    while (curr != null){
         prev = curr;
         curr = curr.getNext();
    blank.setNext(curr);At this point 'curr' is always null so this line is redundant.
    public void addBack(Object o)You can reduce this method to two lines of code.
    public boolean contains(Object o)
    curr.setNext(curr.getNext());You are modifying the list inside the contains method?
                   for (int j=1; j<=i; j++){Rethink this loop.
    public String toString()
         prev.setNext(null);
    if(curr.getNext() ==null)
         sum += "\n" + curr.getElement()+"->"+curr.getNext();
         curr.setNext(null);
    if(curr.getNext()==null)
         prev.setNext(null);
         prev = blank;
         curr = prev.getNext();You are modifying the list in the toString() method?

  • Need help with data link

    I have done data links where I linked from one sql to another
    on some id.
    Now I would like to link based on the month (mm),year,district_id and code_id
    How do I do this. When I link it it links based on one thing and generally the primary key displays.
    Do I need to create my on concatenated key and then tell it to use that.
    for example month || year || district_id || code_id
    then go in the property inspector and change the where to reflect this
    Howard

    I have done data links where I linked from one sql to another
    on some id.
    Now I would like to link based on the month (mm),year,district_id and code_id
    How do I do this. When I link it it links based on one thing and generally the primary key displays.
    Do I need to create my on concatenated key and then tell it to use that.
    for example month || year || district_id || code_id
    then go in the property inspector and change the where to reflect this
    Howard

  • Need help with Hierarchical Select List

    I'm trying to left-pad the entries in a select list to indicate organizational hierarchy. Here's the query:
    SELECT
    LPAD(' ',2*(LEVEL-1)) || ORG_NM d,
    ORG_ID r
    FROM
    ORG_ENTITIES
    START WITH ORG_ID = 901
    CONNECT BY PRIOR ORG_ID = MNG_ORG_ID
    ORDER BY 2;
    (there are two spaces between the single quotes)
    It seems to work fine from a standard SQL prompt, but it looks as if either Apex or the browser is stripping off the spaces in the padding. Can someone point out a reason? I'm using Application Express 3.0.0.00.20. Thanks.

    I've used the concatenation of two items to create space between them before, and that works fine. This is an LPAD situation, however, as there is only one item.
    I did try the & nbsp; in place of the literal space character. The select list strips out the & and I get some variation of the literal characters. I even tried using periods in place of spaces for the padding and that didn't work either.
    Don't know what is going on.

  • Need help with multiple links in one Flash file

    Hi, I have to do a banner which is basically 4 different
    slides that fade up and down, but the client wants each slide to
    link to a different place when the user clicks on it. I know how to
    create an invisible button to link the whole ad, but how would I
    link each slide? Thanks in advance!

    Am I getting no replies because this can't be done in Flash?
    Is there a better way to do it? Actionscripts perhaps?
    BTW, I'll have no access to the html page that the client
    will be putting the swf file on so I wouldn't be able to put any
    code around the file for linking, like if I did a bunch of jpg's
    and found a script on the web somewhere that would fade them up and
    down and link them. They want the linking built right into the swf,
    is this even possible? Thanks in advance!

Maybe you are looking for

  • Please Help me in solving this issue. i am a newbie to coldfusion

    i want to use a single home page where i will show a form (which is in another file) to user to upload a file,after uploading (action file result) i want to show result of upload also on the same page. these are my three files: 1. index.cfm <!-- star

  • My ipod is not recognized by iTunes (but recognized by Windows)

    Hi everyone, I have bought a new ipod 30G 5th Generation. Initially, I have a 4G ipod and an itunes installed on my computer. I have updraged my itunes to v7 and pluged my new ipod 5G to my compuer. I can see the ipod on My Computer as a removable di

  • JMS limiting number of messages

    Is there a way to limit the number of messages or the amount of memory a jms queue uses? Currently having a problem with a queue bringing down the entire system when it gets flooded with messages.

  • Report schedules failing silently

    Hi SAP BI gurus and experts! We are facing a tough intermittent issue concerning report scheduling. From time to time, mostly on a weekly basis, scheduled reports are not sent via email to the recipients. We try to check on CMC if there's any error,

  • Album Info

    I have a 1200 CD music library which I'm experimenting with ways to digitize and organize with iTunes. One question I have is this - how do I store album information such as liner notes, musical personnel and instrumentation, recording date, and othe