Not displaying comment info

Hi i have a problem where we were given a txt file and a class to read and print out the contents of the text file. My job is to make a method to remove all of the comment info for example all the words that come after the // or /***/ and just leave the actual class remaining.
Im lost and if anyone could help guide me in the right direction it would be much appriciated.

Well, the original post didn't mention anything about "line by line" (hint, hint, call a readLine() method).
Actually, it might get a little bit tricky with ignoring text within strings. For example, if you have
System.out.println("Keep \" this: /** value **/");{code}
You preserve the value because it's in between the 2 quotes. You also have to be careful not to count that quote in the middle because it's escaped.
  I notice that the sun forum recognizes escaped quotes and comments within quotes properly, so clearly it's not an impossible task, heh.  Just a few extra conditional checks and a bit more testing than what you might think at first glance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Lion finder window not displaying file info

    I have a MacPro which I've updated to Lion. I have four hard drives installed. When I open a finder window from three of the drives, I get the expected (from Snow Leopard) behavior: in icon view, images display pixel dimensions,  movies or audio files display run time. This is assuming I have Show Item Info clicked in the View Options. But if I open a finder window on my start-up drive the file info is not displayed. If I open the View Info panel and click/unclick the Show Item Info ckeck box, I can see space expand or contract beneath the file, but no info is displayed. Is this a bug or a "feature"?

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, or by a peripheral device.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and Wi-Fi on certain iMacs.  The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Key figure is not displayed in info area

    Hi experts,
    I have a customer created  key figure. I see it in RSD1 but it is not displayed at any info area. Normally when we create any info object and don't assign any info area, it must be displayed at " Unassigned Nodes ". But it is not displayed. When i search it in info objects, i can't find. But i can see it in RSD1.  Anyone knows its solution? Thanks in advance
    FIRAT KAYIRAN
    MM&BW Consultant
    Istanbul, Turkey

    Hi All,
    Firstly thanks for your reply.
    1- In key figures i know it can not be marked as infoprovider. But also i searched in modeling-infoprovider section. But i can not find it.
    2- My key figure is active. But again i can not see it.
    3- I've searched all nodes(assigned key figures and non-assigned key figures)
    Waiting for your reply.
    FIRAT KAYIRAN
    MM&BW Consultant
    Istanbul, Turkey

  • Pdfs sent as attachments to email do not display comments made to pdf prior to sending

    What is the trick to getting pdf attachments to display comments when viewing on ipad?

    We solved this problem by changing r60mail.sh. We changed r60mail.sh into a Perl script, and used the MIME::Lite module of perl to send out the report as an attachment.

  • Why the form does not display these info first...?????

    Hi ,
    In a when-new-form-instance trigger i have the following code:
    DECLARE
    W  WINDOW;
    AL NUMBER;
    BEGIN     
    :BLK_TEMPLATE_ITEMS.global_app_user_code:=:global.app_user_code;
    :BLK_TEMPLATE_ITEMS.global_role:=:global.role_onomasia;
    :BLK_TEMPLATE_ITEMS.global_username:=:global.username;
    W:=FIND_WINDOW('WINDOW1');
    SET_WINDOW_PROPERTY(W,TITLE,'TITLE');
    Read_image_file('images\Shma_Perif.gif','gif','blk_template_items.logo_forea');
    AL:=SHOW_ALERT('ALERT_INFO');
    IF AL=ALERT_BUTTON1
           THEN
       .......In the above code .... the form data values and the image are not displayed beforehand the user presses one of the button of the alert... as expected.....
    How can i impose the system to display the contents in the "BLK_TEMPLATE_ITEMS" block , the image and then the alert....????
    I tried the PAUSE built-in procedure... it works as i want... but it displays another message("Please confirm") before the alert.....
    Thanks ,
    Simon

    Did synchronize solve your issue?
    Like to know it too ;-)
    And if you put EXECUTE_QUERY just before your call to the alert?
    Erwin

  • Data base panel not displaying recordset info

    I am using dreamweaver cs4 running on i mac
    Problem
    the descriptions in my database panel are not displaying on the bindings tab the recordsets just abreviate to "reco" and when I expand a record set all I see is the llighting bolt
    I want to be able to view full record set name and table names how do I do this ?
    Thank you

    Hi
    The first thing to do is to click the 'refresh' button on the r/h side of the databases panel.
    If this does not work, look in the folder on your testing server where your php files are stored for a folder named - _mmServerScripts and delete it.
    The file path would be something like - yourdrive - htdocs - sitefoldername - _mmServerScripts.
    Close DW and then restart DW, and a new folder by that name will be created, along with the files that dreamweaver requires to communicate with the server, (warning - never alter the files in this folder). Should this not work then it may be a problem with your DW installation, php configuration or MySQL permissions.
    PZ

  • Info panel not displaying eps info

    I cannot get the ppi information to display in the info panel. Is this some new spangly feature of InDesign, or a bug?

    Clarification of what is claimed, and why we are perpetuating this conversation.
    John, that's jut nit picking at what I said.
    Sorry, I tried to make it clear, it's a nit but I think it is a very important one. Please feel free to disagree. But when we're talking about whether a file format that's important to people is doing to be supported, or is going to go away, it's very important to be clear about the public statements that have been made. Similarly, I do get bothered when EPS is described as "archaic" or "obsolete." It fills needs that are not filled by PDF or AI files, and while it is certainly older than PDF, it is of peer age to TIFF and JPEG. It is certainly less frequently used, and in many applications there are better choices (like PDF). But not in all.
    The issue of "double standards."
    John, nor do you really say why you think EPS is preferred. Double standards here.
    I'm sorry, but please reread my post. I do not say that "EPS is preferred." I talk about several things it can and cannot do, and explain why, for instance, it and PDF show some of the same deficiencies in InDesign's Info panel. I tell you some reasons that I like it. But I do not in fact believe that it is a "better" format most of the time, and make no such claim. It is unfair to ask me to substantiate claims I did not make. I tried to be quite careful on this one.
    Yes, generally PDFs are better. But.
    You have produced quite a link storm there, but I'm afraid they don't do a terribly clear job of explaining why these other formats are better than EPS, and for exactly which applications. If your point is to say that in general, one should not prefer EPS over PDF, then that's fine. I think it is a true statement.
    What bothers me about the statements in this thread (and this forum in general frequently echoed on this forum) is that it is wrong to use EPS; that EPS is obsolete; that Adobe InDesign will drop support for EPS; that EPS is archaic. That's simply not the case. It might be the wrong format for bigdrunk (it probably is; but we don't really know what he is doing). It is not the wrong format for everyone.
    Addressing the external links/references
    But we should be clear on what we're talking about. Your initial link, to Real World Illustrator's What's in a file? does a great job of describing the output formats from Illustrator. It doesn't really make a recommendation, other than to note that PDF supports some features that EPS does not. Transparency being the key point, and we've mentioned that only four times before your post. I'm not sure if that's the "plain as day" or not.
    Adobe's David Evans' psvspdf post similarly discusses both formats, and suggests that EPS is a replacement for PDF -- which it is. But that only gets you so far. It doesn't address the fact that PDF files can have downsides compared to EPS files (many articulated above in the thread), but really just says that PDF can do most of the things that EPS can do. That's certainly true. After all, you can put EPS files inside PDF files! But that doesn't tell you that you're better off writing to a PDF file in any particular case. To pick a few examples from above, some apps can only read EPS files and can't read PDF files. And others can generate EPS files much more easily than they can generate PDF files.
    I am rather apalled that you would cite eHow. They are rather notorious for giving bad advice that is not vetted by experts. In this case, though, the eHow post merely answers the question, "If an EPS file won't work, what are the alternatives?" It seems to do so correctly, but its not relevant to this discussion.
    Craig Kirkwood's Pixel Therapy link is more general advice, for "How should I save my Illustrator work?" And again, none of us here who are speaking up for EPS are saying that it is the preferred file for Illustrator work (though I did point out that Illustrator can produce smaller EPSs than PDFs, which is bizarre).
    PDF-in-AI or AI-in-PDF?
    (although I disagree about saving as PDF from Illustrator with editing capabilities, best to save as ai with PDF)
    Why do you think so? In general, they should be equivalent -- in both cases a PDF file is available to PDF-reading applications, and in both cases (and in Illustrator EPS, by the way), Illustrator private data is preserved for full Illustrator editing capability. I would say that distributing .PDF files is a better choice, because if a non-expert person receives a .ai attachment in their email, they are more likely to be confused about how to view, print or render it than they would be if they receive a .pdf file. That may not sound like the most compelling reason, but I can't think of one that is more compelling.
    No flat recommendation of EPS over PDF.
    I quite literally CANNOT find one source that recommends EPS over AI or PDF???
    I wonder why that is?
    To be honest, I think it is because there are very few experts on these file formats. You need to really understand the low-level file format to be qualified to offer an opinion on the merits of the file format by itself. And the merits of the file format aren't really the point most of the time -- what matters is the applications that you use, and how they handle it. Does a given application produce better PDF files or better EPS files. Does another application read EPS files better than it reads PDF files? Are there apps that read or write one but not the other? Is there a savings in file structure, in maintenance, in cost, in aggravation.
    Most of the people who write about these things are aware of the ramifications and the practical effects of the choices, but not the low-level details.
    Most of the time the low-level details do not matter. But they do indeed matter to some of us, and it is those of us who have spoken up in this thread.
    In favor of EPS, but in a limited way.
    Why EPS is sometimes better.
    Can you explain why you think EPS is better than ai or PDF? Can you point me to any online sources, or books?
    As we have enumerated in this thread (and the other recent one, I guess), EPS has the following potential advantages over PDF; they may not be important to you, but they are sometimes important to some of us in some cases:
    1. It can be easily authored by humans and tools without requiring complex tools to convert into intermediate formats (e.g. Acrobat Distiller; pstopdf or GNU Ghostscript; expensive libraries to produce PDF output);
    2. If appropriately written, it can produce human-readable ASCII output that can be understood by someone familiar with EPS. For programatically generated output, seeing that the code says "Draw a circle at coordinates (1 inch, 1 inch)" can be extremely valuable. In such an EPS file, that might be "1 inch 1 inch drawcircle."
    3. Bitmap binary data can be more efficiently JPEG encoded in EPS than in PDF. (I was not aware of this, and do not know it to be the case. But Uwe mentions it.)
    4. Gernot's point regarding direct CMYK specifications. I'm honestly not sure what it is, so I won't try to explain it.
    5. Some apps output cleaner EPS files than they do PDF files. Apparently Illustrator is one such app. Which is bizarre.
    6. Some applications/clients/specifications require EPS, such as the CUMULUS database.
    As for AI, well, as we've already said above AI and PDF are essentially equivalent, as both can contain PDF images and Illustrator private data. But EPS is certainly better than Illustrator private data because it is an open, well-documented standard. Anyone with enough time on their hands can interpret an EPS file acording to a public, published spec that's been around for years. There are free and commericial software PostScript renderers, and there are an abundance of PostScript printers. None of those things are true for AI.
    The rest.
    What's left? I think that's really about it. You've spent quite a bit of time arguing against a position I do not think anyone was adopting.

  • New Smart Playlist / Genre = / Genre does not display in Info list

    I'd greatly appreciate help.. spent many hours looking for answer already.
    I have created several Smart Playlists in the past. They work fine. They are all classified by Genre.
    Now I have created a new Smart Playlist. It all looks fine with the Genre set correctly.
    However in Music, when I try to set the Info of a recording to that Genre, the Genre does NOT appear in the Info list.
    All previously created Genres are there, but the Genre for the new Smart Playlist is never there.
    I have tried over and over and over again. I have deleted the new Smart Playlist, re-created it, created another Smart Playlist, with anonther name ... exited iTunes and re-started it several times ... rebooted the computer ...
    Whatever I do, the Genre of the new Smart Playlist does not appear in the Info list.
    Any ideas at all? Is there a limit to the number of Genres? I must say I'd love to get rid of a large number of the pre-existing Genres like 'Industrial', Hip Hop/Rap, whatever, that will definitely never be used!
    Many thanks
    --

    Camoracer,
    ...If the genre is not listed in the drop down then type > it in yourself when editing track info.
    Thank you VERY much. I am not a very regular user of iTunes and had forgotten that the first time a new Genre is created, you have to physically type in the name in the Info field .. even though there is a new Smart Playlist with that Genre already defined!
    Ah well... one of these days when I get some time I'll have to write up an aide memoire for using iTunes! In the meantime I'll not forget this one! Thanks again, I appreciate your time.

  • Html snippet not displaying live info

    Hi, this is my first post. I hope someone can help me? I've inserted a html snippet on a page which has an <IFRAME SRC = > code pointing to a .html file on my server. I know the destination it's pointing to displays correctly as I can load this up in a separate window and it displays exactly the way it should, exactly the way it's written and the images inside it. However in iWeb I can't see the live view inside the html smippet. I've tried re-inserting the html snippet, but I can't get iWeb to show me exactly what my page will look like. However when I publish my site, either via MobileMe or to my server, it displays fine. Why isn't iWeb displaying the correct live info? Thanks for helping.

    Why isn't iWeb displaying the correct live info? Thanks for helping.
    Sometimes you simply have to imagine what it will look like in a browser.
    It's called webdesign. Create a lot of page to get the hang of it and you will get used to it.

  • ITunes not displaying iPod info

    I just bought a 32gb 4th gen iPod. I installed the latest version of iTunes on my PC. Under devices it lists my iPod but in the main window it doesn't show any information. I have completely removed and re-installed iTunes and restored the iPod to default settings but to no avail :'(. please help can you tell me something else to try that I have not done already???
    below is a picture of what my summary page looks like.
    http://i148.photobucket.com/albums/s15/ysuranffxi/IMG0005.jpg
    edit: im running win XP SP3 with all updates.
    Message was edited by: roycerood

    that did not help but thanks for the sugestion. some updated news: I hooked up my ipod to my brother computer running itunes version 10.1.2.17 and it worked just fine. i'm going to try and install that version for my pc and see if it works.

  • My health app on my iPhone 6 plus is not displaying any info

    How do I get the health app on my iPhone 6 plus to start back displaying the information?  It stopped displaying the steps, walking+running & flights climbed a couple days ago. I have turned my phone off & on several times & still nothing. The phone is calculating my steps because my "myfitnesspal" app is picking up my steps from my iPhone.

    Next step would be setting it up as new device and restoring from the latest backup:
    How to erase your iOS device and then set it up as a new device or restore it from backups
    The health data should be included in the iCloud backup, or in your encrypted backup made by iTunes:
    Use Health on your iPhone or iPod touch with iOS 8 - Apple Support

  • Show CD on CD insert does not display info

    When loading a CD, iTunes does not update and show the new album info. Last album continues to display. Advanced preferences are set to "show CD"

    Latest available is the simple answer
    Console OES2 SP2 Oct 2009
    Netware 6.5.8 with most (if not all post SP8 patches)
    4.91 SP5 IR1
    Seb
    "Simon Flood" <[email protected]> wrote in message
    news:guHDq.62$[email protected]..
    > On 07/12/2011 09:45, Sebastian Cerazy wrote:
    >
    >> I have it on quite few IPs from DHCP that java console does not display
    >> the
    >> info, it just hangs there
    >>
    >> Most are displayed OK
    >>
    >> Not much of a problem, I use iManager is the console does not work, but
    >> would like to know why it does it
    >
    > Versions please:
    >
    > * What version of the DNS/DHCP JavaConsole are you using?
    > * On which platform?
    > * If installed, what version of the Novell Client?
    > * What version of OES2 are you running?
    > --
    > Simon
    > Novell Knowledge Partner (NKP)
    >
    > ------------------------------------------------------------------------
    > Do you work with Novell technologies at a university, college or school?
    > If so, your campus could benefit from joining the Novell Technology
    > Transfer Partner (TTP) program. See novell.com/ttp for more details.
    > ------------------------------------------------------------------------

  • I have changed my Apple ID so that it would reflect my new email address. My Apple devices and icloud info do not display my new ID, even though I use the new one to log into iTunes, etc.  How can I get this problem resolved so that I might feel confident

    After changing my Apple ID I do not seem to be able to recognize it as my proper ID. It does work properly for an iTunes login and password, but, it is not displayed that way on my device when I look at my iCloud settings and other "system level" settings.
    How do I correct this to be confident that I can use a feature, such as "Find My iPhone" and know that the functions and contact info is correct?

    To change the iCloud ID on your device you have to go to Settings>iCloud, tap Delete Account, provide the password to turn off Find My iPhone when prompted, then sign back in with the ID you wish to use.

  • HT1296 when connecting my Ipad on mac mini and launching Itunes, the "INFO" is not displayed and my calendar and contacts are not synchronized

    when connecting my Ipad on mac mini and launching Itunes, the "INFO" is not displayed and my calendar and contacts are not synchronized

    Thanks for your advice. However my private informations have nothing to do on a wandering cloud that floats on high over US vales and hills ( and credit to William WORDSWORTH for his poetry)

  • Vendor Info Rec data not displaying on ME57 list

    I need help in getting the Vendor Info Record information to display when in ME57 (Assign and Process Purchase Requisitions). In the past, the Info Rec data has shown up on the list for materials that weu2019ve ordered before, but now they are not.
    I have searched both here and out on the internet and have not found anything.
    What would cause the information to stop appearing on the list? Is there a configuration setting that may have changed?
    We are on ECC 6.0, we are using scope of list A, and we are not using the ALV.
    Thank you very much.

    Thank you for your reply, Bharat. Much appreciated.
    When I'm referring to displaying the info record data, it is in regards to displaying it in the list itself - there are 4 lines of data that can be displayed for each material. On the fourth line is where data from the info rec displays. This is the information that is now missing from the list.
    Hope this clarifies.

Maybe you are looking for