Vector print questions

Dear,
I try to print out the Vector of my storage but nothing.
Please help and advise
1. add class
import java.io.*;
import java.util.*;
public class AddStudent
     public AddStudent(Vector a)
          String tempId;
          String tempName;
          float tempGpa=0f;
          try{
          InputStreamReader is = new InputStreamReader (System.in);
          BufferedReader console = new BufferedReader (is);
          System.out.print("Please enter the student number: ");
          String ans = console.readLine();
          tempId = ans ;
          //System.out.println(tempId);
          System.out.print("Please enter the student name: ");
          ans = console.readLine();
          tempName = ans ;
          System.out.print("Please enter the GPA: ");
          ans = console.readLine();
          tempGpa = Float.parseFloat(ans);
          a.addElement(new Student(tempId, tempName, tempGpa));
          }catch( java.io.IOException ex) {
          ex.printStackTrace(); }
2. Main
* This class is for testing OptionMenu class
* Also, Add, search and print Students class
import java.util.*;
import java.io.*;
public class OptionMenuTest
     public static void main(String[] args)
          //store the input student record with Vector class (included in java.util package)
          Vector studentList = new Vector();
          if (option == 1)
               AddStudent addStudent = new AddStudent(studentList);
               System.out.println("added : " + (String) studentList.elementAt(0));
3. Output. Nothing print out.
Option Menu of Student Managament Student
1) Add a new student record
2) Lookup a student record
3) Print out all student records
4) Exit program
Option: 1
Your selected option is 1
Please enter the student number: 2
Please enter the student name: a
Please enter the GPA: 2.0
Please input an option between 1 and 4!
Thanks

Dear
my student class as follows :
import java.io.*;
class Student
private String name ;
private String id ;
private float gpa;
     public Student(String idIn, String nameIn, float gpaIn)
     id = idIn;
     name = nameIn;
     gpa = gpaIn;
     public String getId()
     return id;
     public String getName()
     return name;
     public float getGpa()
     return gpa;

Similar Messages

  • Image Printing Question

    Hello,
    Bottom line summary: How do I use the Media and Quality setting to get a good image?
    I have an image printing question for an HP 8600 Office. I am trying to get a decent quality image to print
    on regular paper. I gather that I will not get the quality of a photo printer. I gather I'm supposed to use
    HP glossy paper. Please read on ...
    Images come out grainy (rastery) when embedded from an MSPaint project, and if I use Word. However when I printed just an image from image viewer it came like a photo ... but I can't remember what I did. It definitely is capable of printing better. My cartridges all check out, etc. I did the Print Quality Report ... I sure wish I could get that quality when I print other things.
    I tried messing with different settings from the Print - Preference. The Quality (Best, Normal, Draft) doesn't effect the outcome. I tried going into Print - Preference - Media and it makes a difference. I can't figure out which is the best setting for plain paper ... but it's not plain paper. The image rendering algorithm appears to be different for different Media settings. I also tried setting the Advanced Resolution to Maximum DPI. I haven't been totally methodical about this as I was in a rush.
    I see that the printer is being "smart", perhaps a little too smart. 
    So my question is multipart:
    - Is there documenation on the what the Print - Preference - Media settings do?
    - How do I get it to not use grainy/rastery image method, but use the nicer photo method?
    - Should I print Maximum DPI?
    Thanks,
    - Dave -

    Hi @DaveGold , and welcome to the HP Forums!
    I hope you had a great holiday!
    I see you're looking into photo setup options. I'd like to help!
    First I'd recommend this document on Changing Print Settings in Windows 7.  This document should show all the settings you're looking into.
    Also, another thing to keep in mind, when you select 'best print quality' and 'photo paper'. It will only be as good as the source image.
    Good luck and please let me know the results of your troubleshooting steps. Thank you for posting on the HP Forums!
    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 right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • Printer question: Is it possible to print 2 pages in 1 side paper?

    Printer question: Is it possible to print 2 pages in 1 side paper? If so how ?

    Duplicate post.
    Printer question: Is it possible to print 2 pages in 1 side paper?
    Re: Printer question: Is it possible to print 2 pages in 1 side paper?

  • Before I buy: speed and printer questions

    I am looking to buy a new TC 500gb version to replace my linksys WRT54G. To upgrade the wireless router as well as start a backup system I have yet to ever initiate.
    Two questions/concerns come up:
    #1) After the initial back up to TC I understand there are hourly incremental back ups - Can that time interval be adjusted, and how long does that back up take (I do now add much data/ files to my main Comp usually) also during those incremental back ups does that affect the computer much, such as if I am playing an internet game, will I lag out while it is backing up every hour?
    #2) Setting up a printer through usb port to be accessed by my home network. My HP C6180 all in one works fine being seen through the aged, but battle tested linksys, any reason it shouldn't work with the TC?
    Thanks for any insights you might have in this regard.
    I have cable isp access, My Main Comp is where the cable modem and TC would be, I have a G4, a G5 and a MBP scattered around the house accessing via wireless.
    Message was edited by: Steven Swift

    Hi Steven, welcome to the discussions.
    After the initial backup (recommend that you use ethernet for this), TC will backup incrementally every hour assuming you will be using Time Machine. There is no way to alter this with Apple software, but a number of users have reported satisfaction with Time Machine Editor, http://timesoftware.free.fr/timemachineeditor/, which will allow you to schedule backups whenever you would like. This might be a good solution if you notice slow downs with other devices during a backup session.
    Backups should be relatively quick, but be aware that very small changes in some programs (like Entourage, vmFusion, Parallels) require the entire database to be backed up, not just the small change that might have been made.
    The printing question is the most difficult as the boards are busy with users who are having troubles in this regard. Perhaps some other users have used the same HP and can comment. Bear in mind that if your HP is compatible, only the printing function will work through the network. Scanning and other advanced functions are not supported.

  • HP C6180 AIO Printer question

    I've gotten one of the above and love it's being aboe the print wirelessly. My issue is with the drivers. It seems that I can get but one brint quality and don't have the ability to opt for b&W or Color.
    Am I missing something in the settings and the software? I've checked HP's site and they are no help.
    Any Help will be appreciated.
    LarryJay

    Hello John,
    I finally got the 6180, an upgrade from a 2210 model. It still worked wonderfully, but the times just caught up with it.
    About the 6180: compaired to the previous one it is absolutely wonderful. I've had no real problems. It fit into the network like a champ. The Linksys Router went south and there was no problem setting it up on usb. I could have set it up with the eithernet, but the usb was more handy. As for the speed. I've never had to do 32 pages, so not sure if it would do it in 60 seconds. It is very fast one the economy modes. Fax to email fine, though I have question on how to get it to send a document as an attachment in .mail/apple mail. It sends as an attachement in Entourage. Couldn't find anything about it in .mail preferences. If anyone can help with that, please do.
    In short, John, I love it.
    Larry Jay
    Does the 6180 perform as advertised? 32PPM? Scan to
    Mac? Print docs from the Web & Preview without issue?
    All via the Airport as a wireless server? How's the
    print quality now?
    Leaving an HP 6110 that has all of these issues that
    were HP driver/software problems. I wasn't happy with
    HP ignoring the issues and vowed I wouldn't buy
    another, but if this is all correct, I'll probably
    reconsider.
    John
    iMac   Mac OS X (10.4.7)  

  • Printing questions on AIO 8500, choice of paper and settings..

    hi,
    so i recently purchased  the officeje all-in-one 8500.  i installed the printer and was going to use hp primium photo paper to test out some picture printing.  but when it came time to choose what paper type it was, i couldn't find one that match perfectly..  there was 'Advance Photo Paper' that was not it, 'HP Photo Paper Matte'..  that was not it.  'HP Primium Inject Paper', that doesn't seem it.  what do i choose?
    my 2nd question is  what is the best setting to use for best printing?  i only try a couple sheets.  i didn't want to waste ink trying every possible combination.  but using 'Advance Photo Paper' and best setting, the picture turned out SUPER dark.  print quality was great but everything, especially the dark colors, turned out super dark.  using same paper, and 'normal' quality setting, the print quality was crap, but the color was more true to the actual picture color.
    any help, suggestion would be greatly appreciated.
    thanks,
    k

    No web video will start streaming immediately so keep your expectations realistic.
    1. Flash
    2. Flash
    3. Flash or QuickTime h.264 (but don't expect h.264 or any other large files to be anywhere near immediate)
    -DH

  • IPAD and UPdate to Airprint Printer question Help Please?

    I have an HP 6500 printer that I utilize with my MacbookPro (from 2007) and it operates just fine wirelessly using WiFi at home. I did note  though that my iPod cannot print to the printer as the printer IS NOT AIRPRINT equipped.
    MY QUESTION?
    I am considering purchasing an IPAD MINI (RETINA)equipped with KeyNote, Pages, etc., and am wondering If I invest in an AIRPRINT equipped printer in order to enable printing from the IPAD MINI, will I also still be able to print from my Macbook Pro (2007) which is not equipped with anything that interfaces with AIRPRINT to my new AIRPRINT printer? In other words, is this reversed engineered to allow printing from an older laptop to a brand new AIRPRINT printer?
    Hope you can help, so I don't waste money on a new printer and an IPAD only to find out I can no longer use my LapTop (MacbookPro) to print.
    Thanks you for any help.
    Charles

    Thanks, Jim.
    Going to give it a try, Now, after reading all the reviews on the various HP and Epson model all-in-one printers, my next chore will be to make the actual selection. It seems that there as many people who love each unit as there are who hate each unit. Confusing, but I will digest it over the next several days and make a choice.
    Thanks again,
    Charles

  • A Few LR4 Printing Questions

    Have a few questions pertaining to the new features in v4:
    1. In the past we created layouts with all the page and print settings embedded. Is the recommended workflow now to just create the layout with the page settings and then create a saved print collection with the print settings?
    2. If you create a virtual copy and put that through soft proofing and make settings, is the paper profile you used for those settings embedded in the virtual copy?
    3. If the paper profile is embedded in your proof copy and you accidently add it to a print collection which has a different profile specified, which profile setting takes precedence (or do you get an error alert)?
    Thanks!
    Jim

    Hi Jim,
    1. The collection resulting from saved print helps you with custom package: because it saves the images to go in your custom pages as well. Like a snapshot. Before you had the layout/template and the images still separate to drag them again in ... at least that was all I had achieved previously.
    2. If you make a "proof copy" (not just any virtual copy), yes.
    3. I remember from another post in beta-forum, no own hands-on experience: You can easily create hurtful contradictions by that. Print collection profile takes precedence, and there is no warning.
    Cornelia

  • Vectors printing jagged when placed over raster images

    I am fixing a previously designed flyer for a reprint. On the last print, any vector object placed on top of the raster image was very noticeably jagged. This included both white text, which simply had jagged edges, to colored text, which had white jaggies as well. Drawn vector objects and clipping paths in jpgs were also jagged.
    I used InDesign CS3 to create it, but I outlined the type, embedded all the images and exported as a .pdf (my project manager insists on this; so maybe it's not even an ID issue).
    It looks fine when I print it on my hp LaserJet 2550n or the office's Canon iR 2800i - but that's never been a good way to tell how it's going to turn out at the end.
    I know just making it all in Photoshop is probably the safest option, but I would really like to keep the sharpness of the vectors, and I've got Character/Paragraph styles etc going that would be a pain to redo in Photoshop. Plus, copy+pasting it into Photoship creates pdf/vector object that looks just as horrid (on screen - it looks the same when I print it on the above-mentioned printers, but I'm still paranoid).
    Thanks for taking the time to read this and for any help you are able to offer!
    Lisa

    Peter, thank you for your reply. I really appreciate the help.
    Generally, I use the default settings for [Press Quality], since I don't have a complete understanding of all the settings. I have appended the .txt pdf setting summary at the bottom of this post.
    I'm aware that outlining type is supposed to be unnecessary but 1) my project manager insists on it because he doesn't want to deal with any kind of font problems (maybe if this is at the root of the problem it will push him to accept it), 2) I'm using Fontin & Fontin Sans by Jos Buivenga (a high quality free font) and the ligatures/alternate characters
    sometimes don't show correctly when printed (replaced by a ?) or viewed on another computer without the font.
    Yes, I embed the images into the ID document (Links - embed images). This is only because my project manager insists on this as well. It is unnecessary to do this when saving to a .pdf, correct?
    Here are the settings I generally use when exporting a pdf to send to the printer (who do not specify any kind of settings):
    Description
    Use these settings to create Adobe PDF documents best suited for high-quality prepress printing. Created PDF documents can be opened with Acrobat and Adobe Reader 5.0 and later.
    PDF Preset: [Press Quality]
    Compatibility: Acrobat 5 (PDF 1.4)
    Standards Compliance: None
    General
    Pages: All
    Spreads: Off
    Generate Thumbnails: Off
    Optimize PDF: On
    Create Acrobat Layers: N/A
    Export Layers: Visible and Printable Layers
    Include Bookmarks: Off
    Include Hyperlinks: Off
    Export Nonprinting Objects: Off
    Export Visible Guides and Baseline Grids: Off
    Create Tagged PDF: Off
    Include Interactive Elements: Off
    Multimedia: N/A
    Compression
    Color Images
    Bicubic Downsample at: 300 ppi
    for images above: 450 ppi
    Compression: Automatic
    Tile Size: N/A
    Quality: Maximum
    Grayscale Images
    Bicubic Downsample at: 300 ppi
    for images above: 450 ppi
    Compression: Automatic
    Tile Size: N/A
    Quality: Maximum
    Monochrome Images
    Bicubic Downsample at: 1200 ppi
    for images above: 1800 ppi
    Compression: CCITT Group 4
    Compress Text and Line Art: On
    Crop Image Data to Frames: On
    Marks and Bleeds
    Crop Marks: Off
    Bleed Marks: Off
    Registration Marks: Off
    Color Bars: Off
    Page Information: Off
    Page Mark Type: Default
    Weight: 0.25 pt
    Offset: 6 pt
    Use Document Bleed Settings: Off
    Bleed Top: 0 pt
    Bleed Bottom: 0 pt
    Bleed Left: 0 pt
    Bleed Right: 0 pt
    Include Slug Area: Off
    Output
    Color Conversion: Convert to Destination (Preserve Numbers)
    Destination: Document CMYK - U.S. Web Coated (SWOP) v2
    Profile Inclusion Policy: Don't Include Profiles
    Simulate Overprint: N/A
    Output Intent Profile Name: N/A
    Output Condition: N/A
    Output Condition Identifier: N/A
    Registry Name: N/A
    Advanced
    Subset Fonts Below: 100%
    Omit PDF: Off
    Omit EPS: Off
    Omit Bitmap Images: Off
    Transparency Flattener Preset: N/A
    Ignore Spread Overrides: N/A
    Security
    N/A
    Warnings

  • Photo/print question

    Another likely "dumb question" from a rookie ID user:
    I've imported a photo and the color looks off (on my screen) -- should I be concerned about photo print quality?
    The photo seems to look OK when printed off my printer, but it will eventually be printed via some type of offset printing (as I understand it)
    P.S. I haven’t researched this much, so if there are answers out there and you can point me in the right direction, I’d appreciate it.
    ID-CS4 6.0.3
    Mac OS X 10.5.7

    The only way you can come close to knowing what the color will look like is to calibrate and profile the monitor (use a colorimeter), and preview using the appropriate output space as the proof setup.
    You absolutely should ask to see a printed contract proof of the job from the printer -- not a PDF or JPEG proof, because they will look different on your monitor unless the calibration is done -- that they guarantee to match in the actual print run.
    Peter

  • IPhoto 6 card printing question

    Hi, this may be a dumb question, but I spent over an hour and I couldnt figure it out.
    Ok, so I made a card in iPhoto 6, size 7'' x 10''. It is a double-sided card. So, I print one side, feed the paper in again, and print the other side.
    The problem is, I can't set the card to print centered on the paper, and thus, printing it double sided and cropping the paper will force me to cut off some of the card, and the fold wont line up right. I need this to print centered so the margins will be even, and thus, I can print double-sided properly.
    Thanks for any help/response
    PowerBook G4 15"   Mac OS X (10.4.4)  

    I have a similar problem, & am waiting for this to be answered properly by someone who can help allof us.
    Using iPhoto5 (Dec. 2005) I was able to print my photos to 7x10 greeting cards all properly centered on the card -to then fold it in half for a greeting card. Now in iPhoto 6 (the same settings as used in iPhoto5) do not print out properly centered on the card. In preview it shows properly, but it does not come out that way. I am using the same printer - Epson R200 - as with iPhoto5). Another person has a Lexmark & can't get the right print out setting with iPhoto 6 either.

  • Preview/Printer question

    Hey guys,
    I don't know if this is the proper forum to ask this, but if ANYONE can help me out, I would greatly appreciate it!! This may sound like a petty thing to ask, but I am taking a class and the professor is expecting us to print almost 30 pages worth of slides for notes to bring to class. (I would handwrite them all down in my notebook but she goes over her lectures too darn fast for me to write every word down.)
    SO my question is this: How do I change the color preference on Preview before printing?? Some of classmates in my class can print them on grayscale/black and white, assuming they are NOT Mac or Apple owners, but I cannot for the life of me figure out how to do this! It won't open w/ anything else, bc I thought if I could "trick" it to open on Pages or Keynote I can print in black and white to save ink. But it won't and this can't go on throughout the semester or else my printer ink will die soon!
    Any help/suggestions?
    Thanks!
    PS. If I should post this elsewhere, let me know. I wasn't sure where to ask this question other than here since I have the Leopard on my computer right now.

    Hi Luce, this is fine likely.
    Depends on Printer & Drivers, but look for something like these in the Print Dialog...
    Then op at Presets, choose Save As... B&W Only.

  • ALV printer question

    hi folks,
    i have a question here.
    in a screen , i've created two containers for two alv grids. the question is can i print the two reports on the same paper?
    looking forward your reply.
    thanks

    hi folks,
    i have a question here.
    in a screen , i've created two containers for two alv grids. the question is can i print the two reports on the same paper?
    looking forward your reply.
    thanks

  • Basic Security & form printing questions.

    Hi, I am not an Oracle Forms developer yet, just gathering info, but I have 2 probably simple questions for you forms experts out there that maybe you can help me with.
    Lets say that this new application will have 10 users and I create a main menu with 5 categories. Can forms allow me to give 4 users read/viewable rights to, lets say 3 categories,instead of all 5 categories? Bsically I just need to know if it offers some kind of security that I can create for each individual user.
    The next question is if I create 10 forms that is supposed to 'retrieve' data, but I need to also have these 10 forms print out 'without' the data. Do I need to create 20 forms, or is 10 sufficient and oracle would allow me to print the forms out either with or without data.
    Thank you in advance
    null

    There is menu-level security, meaning that only users that have certain roles may execute certain menu choices.
    There's no special security at form level, apart from the database level security.
    If a database user does not have insert, update & delete priviledges on a datablock in the form (but has the select priviledge), then, he won't be able to change the data in that block using the form, and if he'd try to, he'd get an error when trying to commit the changes.
    Well, you may use set_block_property(your_block, update_allowed, property_true) or set_block_property(your_block, update_allowed, property_true) in the when new-form-instance trigger to make the form behave as you will when opened by a given database user.

  • InDesign printing question - help really needed!

    Maybe an easy question maybe not!
    Usually here at work our printing is out-sourced, but for a project I'm currently working on I need to print a few bits on the work printer [for the client]. So, I've got a black page [4 colour black] with large red text - when I send to print, obviously the black prints first; leaving white gaps for the text; red prints next but due to slight movement [I guess] I always seem to get what appears to be a tiny white outlines around sections of the text [where the red hasn't printed exactly in the gaps left when applying the black].
    Just wondering if there is any way around this, to minimise the issue, in InDesign. Or is this due to the printer used?
    Cheers in advance

    I'm reading the post to look something like this (0|100|100|0 red on a field of 65|50|50|100 black):
    http://www.zenodesign.com/scripts/redonK.png
    If I hide the black channel it looks like this:
    http://www.zenodesign.com/scripts/cmy.png
    If I simulate the black plate off register, it looks like this:
    http://www.zenodesign.com/scripts/offreg.png
    In this case you couldn't get white because there's no white on any of the plates.

Maybe you are looking for

  • Exchange Server 2007 external autodiscover not working

    Dears I need help to resolve my autodiscover issue externally. Internally everything works fine like auto discover, free-busy, out of office etc. Our Exchange is 2007 CCR clustered with one CAS and HUB server (both in one) and 2 mailbox servers (acti

  • Changing multiple gradients in a file

    Is there an easy way to change gradient colors all at one time? For example this file is blue and I'd like it in red. However, every little bar is a slight variation of the same gradient. Can I somehow change all of the dark blue areas to dark red an

  • 'No Wifi' problem

    i got my cellphone smashed well after getting my screen replaced,i got my wifi disabled well can you please suggest me a way out please.

  • I need to populate the Document Currency in the COPA analysis. At the movem

    I need to populate the Document Currency in the COPA analysis. At the movement Overhead reporting is Profitability Analysis Cube in BW. Now they want to Include the document currency in the reporting and they want add the field document currency and

  • Batch number determination from process order

    Dear Gurus, I need when I'm receiving on a process order, the batch number is copied from the batch of the process order. Regards, MaX