Making a Hash of it - HELP PLEASE!

I have declared a HashMap in a class.
I want to retieve the information stored in that HashMap from another class.
I have tried casting but JBuilder keeps throwing out error messages.... I can retrieve information from a HashMap declared in the same class so what step am I missing????
Please help as it's driving me insane....................
Thanks

Here is the code used to print out the HashMap details from the class that it was declared in:-
public void airlineDetails ()
String airlineName, output;
output = "I hold details about the following airlines\n";
Airline tempAirline;
//Create Iterator
Iterator airline = airlineList.values().iterator();
//Create output
while(airline.hasNext())
tempAirline = (Airline)airline.next();
output = output + tempAirline.getAirlineName() + " \n";
//display contents
JOptionPane.showMessageDialog(null, output, "Recognised Airlines",
JOptionPane.INFORMATION_MESSAGE);
I now want to print out details of a HashMap in this class but it was declared in another class ie there is an association.... The HashMap that stores the information that I want to retrieve is in the Airline class. This is my attempt which is not working at the moment...
public void displayFlight()
String output, userChoice, flightChoice, flightNum;
output = " ";
Flight tempFlight;
int choice;
//Display Flight
Iterator aFlight = flightList.values().iterator();
//Create output
while(aFlight.hasNext())
tempFlight = ((Airline)(aFlight.next())).toString();
output = output + ((Airline)(theFlights.toString()));
output = (Airline.getTheFlights()).get(flightNum);
// display contents
JOptionPane.showMessageDialog(null, output, "Flight List Contents",
JOptionPane.INFORMATION_MESSAGE);
Error messages state that flightList not fouund in Airline Reservation Class (correct it is in Airline Class) and incompatible types found java lang string required Flight
aFlight is the object declared in another method and stored in the HashMap
Please help..............

Similar Messages

  • Audio Playback on iOS - not making sense to me. - Help Please?

    I've read A LOT of things and tried several approaches. As EDGE ANIMATE and INDESIGN DPS are a whole new experience to me, I'm probably just missing something simple, but I REALLY need help getting audio to play on an iPad (air) or otherwise.
    I know that iOS will NOT allow autoplayback of audio -- that's fine - makes sense to me, but I can't even get it to play with the built in audio commands or by using the Buzz.js approach  (which I know is outdated - but I'm desperate) by attaching the audio to a user interaction, like an invisible button that plays when clicked, or hovered.
    I have included a link to what I have thus far (native AN files) below. If someone would PLEASE let me know what I'm missing -- that would be GREATLY appreciated.
    Thanks.
    https://www.dropbox.com/s/ysnvra8v3ahyvue/iPad-DPS_AUDIO_ISSUES_FORUM.zip

    ChipNow JoeBowden532
    Sorry for not getting back to you on this until today. I am an Art Director managing 4 other artists, a video editor, a designer, a fledgling mobile developer, etc., etc. I have been pulled away from this project for three days now. I appreciate you offering to look into this. I will try to get the simple files up to you ASAP. I am using the HTML generated from Animate within a InDesign CC / DPS project. The animation you have been looking at is only page 2 (FOLIO) of a multiple page (FOLIO) project.
    I use a box object on the InDesign page that is the size of the full-screen iPad dimension: 768x1024, and choose the HTML Folio Overlay object. I link to the HTML file from the published Animate project. I have been publishing the files to my Adobe Content Viewer on my Adobe Cloud Account and then downloading them to an iPad to view using the Adobe Content Viewer for iPad. The animation and button actions work just fine, but NO AUDIO .
    I have tried to use the .OAM files in InDesign - but they NEVER WORK! They only appear as a single Image from the poster frame and won't play at all.
    ALL HELP IS GREATLY APPRECIATED.

  • Noobie is making a tetris clone NEED HELP PLEASE!!!

    Hello,
    I am a newbie and I took on the task of making a tetris clone for my final project in my CS162 java class.
    In my Block Class I have each Tetris block set up as an array of Shapes
    using rectangle2D.Doubles for the small squares that make up the block, and a paintcomponent method in my gamePanel Class to paint the blocks. I use the Swing Timer Class to triger an event to move the block down every second, and when the block intersects a line, a new block is instantiated and begins to fall...So...my problem now is getting the old block to stay when the new block is instantiated(the old block disapears). I have tried adding the blocks to an arraylist and then making paintcomponent repaint it but I am getting a nullPointerException.
    I still think using the arraylist is better than trying to make my own array of blocks. I think I am just using it wrong.
    Can anyone suggest Anything???

    cross-post:
    http://forum.java.sun.com/thread.jspa?threadID=665840

  • Hi there, I have much files saved on pages ( ios ipad) , I just open it today and did not find .all the files !!!! Just 4!!! Taken in consider that I did not delete or making any wrong action. How I can return the lost files!!!! Help please

    Hi there, I have much files saved on pages ( ios ipad) , I just open it today and did not find .all the files !!!! Just 4!!! Taken in consider that I did not delete or making any wrong action. How I can return the lost files!!!! Help please
    its very important files!

    tis true
    I know, I always do that but I was in a rush to get somewhere and I was relying on my thousand dollar Mac to do some kind of recovery or something. I know Microsoft always keeps temporary files (I think Mac does too, part of me asking here in this forum was for someone to tell me where I can find those files) and when you go to open Office Works then it gives you the option of opening the last recent documents, saved or not saved.
    I usually copy paste into my emial just in case something goes wrong with the created document but I just didn't have the time to login and do all that My loss, you live and you learn, BUT still if ANYONE got any info on this, PLEASE DO CHIME IN *keeping the hope alive*

  • I created an account but haven't yet purchase any products yet! I'm a publisher launching  a magazine so i need something for design and making a layout for magazine! Please help is there a number i can talk to someone ?

    created an account but haven't yet purchase any products yet! I'm a publisher launching  a magazine so i need something for design and making a layout for magazine! Please help is there a number i can talk to someone ?

    Adobe Connect Support phone numbers
    or
    Cloud Plans https://www.adobe.com/products/creativecloud/buying-guide.html

  • The messy "ÿ" letter ...help please!!

    Hello i have a constant problem with some files that if i open it first in Serato Itch and then i play it in iTunes, a letter "ÿ" replaces my "Comment" tagged ifo, this is making me crazy help please!!

    Why am removing objects manually because am maintaining a pseudo session on server and in servlet context i placed a Hash Table with userid and UniqueId
    This is to check wether user is already logged in. And need to be removed when user is loggedout.
    Also i check the objects placed in session for data i need .
    And My sessionMap hold the Objects placed in session after session-timeout and doesn't get cleared this generates mixup of data for different users.
    Do you think something missing here? Or there is better way for maintaining user session?
    Thanks,
    prince

  • At the end of my IMovie I want to write some text: as in" Happy Birthday Mandy we had a great time with you. etc..  How do I go about this? Which icon in IMovie lets me have a place to write text?? help please

    Please see my ? above: Im making an IMovie and need the last frame to just be text (can be on a color). I don't know how to go about doing this.  Ive already done all my photos and captions. Need to have it ready for TOMORROW: Friday May 23rd. Help please!
    Thanks

    You can choose a background for the text from Maps and Backgrounds.  Just drag a background to the end of the timeline, adjust to desired duration then drag title above it.
    Geoff.

  • Need Urgent help please? I need to restore from a previous iphone backup.

    Oops, I admit it - I messed up but need help please?? I received a replacement iphone today. My broken iphone OS and my itunes had the latest software updates and I did a full backup before going to the store to get the rerplacement. However, when I got home with the replacement iphone and plugged it in, it asked if I wanted to update the OS on it. I made the mistake of saying yes. It then made a backup of the empty factory settings from the new replacement and restored from that rahter than the backup I made before going to the store. Yes I know I should have said no and just did the restore which would have resotred my previous backup that I made before going to the store. Then after everything would be allright I could have told it to update the OS.
    You can slap my in the face or I will do it myslef for making such a stupid mistake. All ready did the "I should have had a V" thing to my forehead.
    After seeing the restore was fromthe factory settings rather than my earlier good backup, I went into my documents and drilled down to the mobile sync backup and saw that one of the three folders (with giberish as a title) has a lot of information with the date and time I did the backup before going to the store.
    Could I possibly delete the later (factory setting backup) folder and then do a restore to get my good backup onto the iphone? I didn't do that yet in fear that it might mess something else up on the iphone and I wanted to check with you experts here first for guidance and assistance, PLEASE?
    I'll be anxiously awaiting any help you can give!
    Thank you!!

    rwmac22 wrote:
    Hopt and OneOrangeTree, Thank you both very much for replying!!
    It took me a long time to get back to the dissucison group because I tried both of your suggestions which therfore had to do about 4 restores. They take quite a while (about 50 minutes each actually). Your help got me half way there and is very apprecaited! I did manage (with your excellent help) to get most of my backup put onto the replaced iphone. the photos, music, and videos didn't get put over. I think I can move those back over by making sure they are selected in the seperate tabbed screens for the iphone. However, I can't get to those screens because every time I connect the iphone now, it brings up the "set up your phone screen". The one with the "an iphone has been previously synced with this compter" setup as new phone or restore from ....
    Well I did the resotre from 3 times and that page still comes up when I plug in the iphone. Yes, I did close itunes, reboot the PC, and powered off the iphone and then brouhgt it back up before connecting (all several times), but itunes still takes me to the same "setup iphone screen".
    Can you help me to get it to the standard iphone screen and there I will make sure the selected items are checked and do a sync.
    Please know I do appreicate your kind assistance so far and hope someone can get me the rest of the way!
    The "Backup" do not store your Applications, Music, Video's. It saves your settings, your application preferences, etc.

  • Troubleshooting: Help please. Creating a PDF file from a Photoshop-designed project

    I wanted to add personal design elements to my resume so I decided to use Photoshop to add in a logo and a footer. The problem is, when I converted the 3 Photoshop .psd files (3 pages) to .pdf files, the combined file came out to be very big in size. The biggest was 2.88 MB and the smallest that I got it to be without compromising the quality of the text and images was 1.48 MB.
    What did I do wrong?
    I've seen other .pdf files with more images and more color and definitely more pages and text which were only 300KB in size. How can I make my final .pdf file size small but still retain the quality of the original design from Photoshop?
    I've tried merging the layers before saving. I've tried turning the files into .gif files before making the pdf. Into jpegs before making the pdf. Changing the canvas and image sizes in Photoshop into super small which made the final pdf file unreadable and super blurry. I'm at my wit's end.
    Details:
    .psd image size 8.5 by 11 inches (normal resume size)
    colors - black, gray, light blue and light yellow
    Images are very minimal, 4 lines total and around 5 circles at the header of the first page and footer of the 3rd page.
    Help please!
    X-cross-post: Acrobat Forum-X

    This is so sad. I read your comments and I said, "Huh?" Haha!
    I tried the indexed color option and it did make the final file smaller. Around 600KB. But there's probably another way to make it even smaller like the gazillion-paged pdf file that I mentioned that was only about 300KB.
    And by saying a layout program, does that mean like Adobe InDesign? Does that mean that I should just make my graphics in Photoshop and then import using another program and finish the file there?
    What other layout programs can I use?
    Thank you so much!

  • Firefox frequently 'not responding' having auto-installed version 10 yesterday. No previous problems. Have disabled all plugins and uninstalled and then re-installed Firefox several times today. Problem persists. Can anyone help please?

    Firefox frequently 'not responding' having auto-installed version 10 yesterday. No previous problems. Have disabled all plugins and uninstalled and then re-installed Firefox several times today. Problem persists making continued use of this browser very unlikely unless a quick solution is found! Can anyone help please?

    Perform the suggestions mentioned in the following articles:
    * [[Firefox is already running but is not responding]]
    * [[Firefox hangs]]
    Check and tell if its working.

  • After effects and photoshop ,,,help please

    hi all
    can anybody help please.
    ive been making a short film with my son and putting some basic effects in, just for a laugh.
    i noticed an effect on ADOBE TV that was done by Gareth Edwards in his movie MONSTERS which i thought would be good to try out in my film but i carnt get it right,,
    here is the link to that effect...            http://tv.adobe.com/watch/customer-stories-video-film-and-audio/monsters/
    its the effect where he changes the menu board in a cafe to one of his infected area signs, he allso changes a few other signs.
    in the video he say that he exports a still frame from after effects into photoshop and puts on his image {with a few tweaks her and there}, when hes got it ok in photoshop ,it some how updates in after effects??
    can any please help ,thank you

    It's a simplified explanation of the process.  He left out explanations of motion tracking and perspective matching that were most certainly required for the shot being discussed.
    If you are doing the same process to a static, locked off shot, with no foreground objects passing in front of your sign, it would be very possible to create a single frame in Photoshop and just layer it over your scene in AE.  But once the camera moves, you will need to understand Motion Tracking.  If objects pass in front of the replaced component, you will need to understand Masking.

  • Frustratingly, since I upgraded to Yosemite 10.10, I too am having the worst problems with WiFi dropping out. I've never had this problem before on my iMac 27-inch mid 2011 model. Turning WiFi off and then back on again sometimes works. Help please.

    Frustratingly, since I upgraded to Yosemite 10.10, I too am having the worst problems with WiFi dropping out. I've never had this problem before on my iMac 27-inch mid 2011 model. Turning WiFi off and then back on again sometimes works. Help please. I've already tried a lot of your suggested fixes, but without success. Why hasn't Apple Fixed this?

    Please test after taking each of the following steps that you haven't already tried. Stop when the problem is resolved. Back up all data before making any changes.
    Step 1
    Take the applicable steps in this support article. The Wireless Diagnostics program generates a large file of information about your system, which would be used by Apple Engineering in case of a support incident. Don't post the contents here.
    Step 2
    Disconnect all USB 3 devices. If you don't know which are USB 3, disconnect all USB devices except keyboard and mouse.
    Step 3
    If you're not using a wireless keyboard or trackpad, disable Bluetooth by selecting Turn Bluetooth Off from the menu with the Bluetooth icon. If you don't have that menu, open the Bluetooth preference pane in System Preferences and check the box marked Show Bluetooth in menu bar. Test. If you find that Wi-Fi works better with Bluetooth disabled, you should use the 5 GHz Wi-Fi band. Your router may not support it; in that case, you need a new router.
    Step 4
    Open the Energy Saver pane in System Preferences and unlock the settings, if necessary. Select the Power Adapter  tab, if there is one. Uncheck the box marked
              Wake for Wi-Fi network access
    if it's checked.
    Step 5
    Open the Network pane in System Preferences and make a note of your settings in the Wi-Fi service. It may be helpful to take screenshots of the various tabs in the preference pane. If the preference pane is locked, unlock it by clicking the padlock icon and entering your administrator password. Delete Wi-Fi from the service list on the left by selecting it and clicking the minus-sign button at the bottom. Then recreate the service by clicking the plus-sign button and following the prompts.
    Step 6
    In the Wi-Fi settings, select
              Advanced... ▹ TCP/IP ▹ Configure IPv6: Link-local
    Click OK and then Apply.
    Step 7
    Reset the System Management Controller.
    Step 8
    Reset the PRAM.
    Step 9
    Launch the Keychain Access application. Search for and delete all AirPort network password items that refer to the network. Make a note of the password first.
    Step 10
    Make a "Genius" appointment at an Apple Store, or go to another authorized service center.

  • VIRUS PROBLEMS, HELP PLEASE???

    I continue to have messages popping up saying my computer is infected. It wants me to cleanup and I have to register with Mac Shield 2.6.  Pronograhic websites keep popping up.  Anyone having this problem?  Did not have this problem yesterday, but it's here today!  There is also a Red Sheild on the top of the toolbar where it shows the time, battery life, etc.  Right clicking on the sheild drops down Scan Now, Cleanup, Control Center, Scan, System Info, Settings, About, and Register.  A pron site just popped up again!  Need help Please!!

    Fuony wrote:
    The Mac Shield malware can come through Firefox too if you allow it to and you click on it!
    Your exactly right, it is possible that if you visit a site and need the scripts to run for something that the malware that uses Javascript is on that site, then your going to be presented with it.
    The thing is with the Firefox + NoScript combination defeats alot of the web side trickery the malware authors are using to get the malware to appear in the first place.
    Also this "MacDefender" isn't the only malware making the rounds. There are some serious Flash vulnerabilities being hosted on hostile/adult websites that are running scripts for no apparent reason other than to try to infect your machine.
    By running all scripts all the time, your computer is in a state as if you tried running across a busy highway blindfolded.
    As a lifelong "MacHead" I can understand Apple loyalty, but if Apple isn't cutting the mustard on their browser security, rather place their users security at serious risk for the sake of convenience, then I have to think about using and recommending to others something else that is more secure.
    As a example, I surf thousands of web pages a day, some on really nasty sites, yet I haven't seen this "MacDefender" appear on my computer. Even when I purposely visited links that people have submitted that had the malware. (I maintain a couple of bootable clones of my boot drive just in case)

  • ISync for Mac - Help please!

    I have a Nokia N70 and am trying to update my contacts from my Address Book. I have up-to-date OSX 10.4.10 and iSync 2.4 and the phone is being recognised, so a good start! My problem is that my updated Address Book entries are not being transferred, somehow an old version of my Address Book is being used by iSync.
    I've tried restarting the Mac, clearing all contacts from my phone and sync-ing again (repeatedly), but I still get the contacts from the old version of Address Book loaded into the phone.
    I'm not a Mac expert, can anyone smarter than me help please?
    Thanks for your time.
    MacAndy
    PS Any tips on useful software for making the N70 otherwise more compatible with music and any other areas would be very welcome.

    There's an actions folder. It's your hard drive>library>application support>adobe>photoshop elements>8.0>Locale>en_US (this one is different if you aren't in the US)>workflow panels>actions

  • b font color ='red' Java JDBC and Oracle DB URGENT HELP PLEASE /font /b

    Hello, I am a newbie. I'm very interested in Java in relation to JDBC, Oracle and SAP.I am trying to connect to an Oracle DB and I have problems to display the output on the consule in my application. What am I doing wrong here . Please help me. This is my code: Please Explain
    import java.sql.*;
    import java.sql.DriverManager;
    import java.sql.Connection;
    public class SqlConnection {
         public static void main(String[] args) {
              Class.forName("oracle.jdbc.driver.OracleDriver"); //Loading the Oracle Driver.
              Connection con = DriverManager.getConnection
              ("jdbc:orcle:thin:@34.218.5.3:1521:ruka","data","data"); //making the connection.
              Statement stmt = con.createStatement ();// Sending a query to the database
              ResultSet rs = stmt.executeQuery("SELECT man,jean,test,kok FROM sa_kostl");
              while (rs.next()) {
                   String man = rs.getString("1");
                   String jean = rs.getString("2");
                   String test = rs.getString("3");
                   String kok = rs.getString("4");
                   System.out.println( man, jean, test,kok );//here where my the
                                                 //compiler gives me errors
              stmt.close();
              con.close();
    }

    <b><font color ='red'>Java JDBC and Oracle DB URGENT HELP PLEASE</font></b>Too bad your attempt at getting your subject to have greater attention failed :p

Maybe you are looking for

  • Creative inspire 5300 5.1 with DDTS-100

    Hello i'musing these set of speakers for 2.6 years and now decide tobuy decoder DDTS-100 but there is a problem ca't connect them and creative labs are saying this decoder is compatible with all speakers from creative !!! Any information how to conne

  • Songs I purchased a while ago no longer appear in my library, how do I add them to my library?

    I purchased an album a few years ago, since then I have changed computers. How do I add the old album I bought to my new computer, or is it even possible. Apple has a record of my purchase, but it will not let me access it other then just showing me

  • The plotted data on the graph disappear when clearing graphs!??

    Hi folks I got this vi, with two graphs, and one chart. I got this chart coz i want the data plots to strip in the graphs. but when the VI runs, and i pres stop and run again, the data plot disappears, they are then beeing plotted in the back ground

  • Two people using one computer with Mail

    What's the best way to only show my email and not my wife's on our macbookPro, like I do on my iPad?

  • Classpath for running OIM API's externally

    Hello there, Can I please know the names of the JAR's that are needed to be included in the CLASSPATH variable to run the following code: import com.thortech.util.logging.Logger; import java.util.HashMap; import java.util.Hashtable; import Thor.API.t