Poll: Which sites have helped you with Java mobile development?

[Which sites have helped you with Java mobile development?|http://www.polldaddy.com/p/1158419/]

Spam blocked, spammer blocked for life.
db

Similar Messages

  • Help needed with java

    Hello everyone
    I'm a Student and new to java and I have been given a question which I have to go through. I have come across a problem with one of the questions and am stuck, so I was wondering if you guys could help me out.
    here is my code so far:
    A Class that maintains Information about a book
    This might form part of a larger application such
    as a library system, for example.
    @author (your name)
    *@version (a version number or a date)*
    public class Book
    // instance variables or fields
    private String author;
    private String title;
    Set the author and title when the book object is constructed
    public Book(String bookAuthor, String bookTitle)
    author = bookAuthor;
    title = bookTitle;
    Return The name of the author.
    public String getAuthor()
    return author;
    Return The name of the title.
    public String getTitle()
    return title;
    and below are the questions that I need to complete. they just want me to add codes to my current one, but the problem is I don't know where to put them and how I should word them, if that makes sense.
    Add a further instance variable/field pages to the Book class to store the number of pages in the book.
    This should be of type int and should be set to 0 in the Constructor.
    Add a second Constructor with signature
    public Book(String bookAuthor, String bookTitle, int noPages) so it has a third parameter passed to it as well as the author and title;
    this parameter is used - obviously?? - to initialise the number of pages.
    Note: This is easiest done by making a copy of the existing Constructor and adding the parameter.
    Add a getPages() accessor method that returns the number of pages in the book.
    Add a method printDetails() to your Book class. This should print out the Author title and number of pages to the Terminal Window. It is your choice as to how the data is formatted, perhaps all on one line, perhaps on three, and with or without explanatory text. For instance you could print out in the format:
    Title: Robinson Crusoe, Author: Daniel Defoe, Pages:226
    Add a further instance variable/field refNumber() to your Book class. This stores the Library's reference number. It should be of type String and be initialised to the empty String "" in the constructor, as its initial value is not passed in as a parameter. Instead a public mutator method with the signature:
    public void setRefNumber(String ref) should be created. The body of this method should assign the value of the method parameter ref to the refNumber.
    Add a corresponding getRefNumber() accessor method to your class so you can check that the mutator works correctly
    Modify your printDetails() method to include printing the reference number of the book.
    However the method should print the reference number only if it has been set - that is the refNumber has a non-zero length.
    If it has not been set, print "ZZZ" instead.
    Hint Use a conditional statement whose test calls the length() method of the refNumber String and gives a result like:
    Title: Jane Eyre, Author: Charlotte Bronte, Pages:226, RefNo: CB479 or, if the reference number is not set:
    Title: Robinson Crusoe, Author: Daniel Defoe, Pages:347, RefNo: ZZZ
    Modify your setRefNumber() method so that it sets the refNumber field only if the parameter is a string of at least three characters. If it is less than three, then print an error message (which must contain the word error) and leave the field unchanged
    Add a further integer variable/field borrowed to the Book class, to keep a count of the number of times a book has been borrowed. It should (obviously??) be set to 0 in the constructor.
    Add a mutator method borrow() to the class. This should increment (add 1 to) the value of borrowed each time it is called.
    Include an accessor method getBorrowed() that returns the value of borrowed
    Modify Print Details so that it includes the value of the borrowed field along with some explanatory text
    PS. sorry it looks so messey

    1. In the future, please use a more meaningful subject. "Help needed with java" contains no information. The very fact that you're posting here tells us you need help with Java. The point of the subject is to give the forum an idea of what kind of problem you're having, so that individuals can decide if they're interested and qualified to help.
    2. You need to ask a specific question. If you have no idea where to start, then start here: [http://home.earthlink.net/~patricia_shanahan/beginner.html]
    3. When you post code, use code tags. Copy the code from the original source in your editor (NOT from an earlier post here, where it will already have lost all formatting), paste it in here, highlight it, and click the CODE button.

  • I have a problem with Java and an e-procurement system integrating

    I use an e-procurement system at work and yesterday I could not get my parts list from the suppliers web site to display in our in-house eprocurment finance package.
    There is not a problem with the finance package. There is not a problem with the suppliers web site. I have verified both of these by other colleagues being able to complete what I am trying to do.
    The difference between my version of Firefox and my colleagues' is that I am on version 6.0.1 and they are on 6.0.
    I have had problems with Java not displaying certain animations on the suppliers web site but, my colleague does not and I am suspicious that this is the problem. Can anyone verify this please and what can I do about it. My Java updates are up-to-date as of yesterday and are automatic.
    Thanks.

    I was quite amazed I never got a reply to this, in the past people here have been helpful. In any case I was finally able to enter this website on the exceptions list in the Java panel, and I believe it is okay  now.

  • Can someone pls help me with java on my macbook pro because after i download the mountain lion java has died and i need java to see streaming quotes from stock market

    can someone pls help me with java on my macbook pro because after i download the mountain lion java has died and i need java to see streaming quotes from stock market

    Java is no longer included in Mac OS X by default. If you want Java, you will have to install it.
    However, note that you should think twice before installing Java for such a trivial need as looking at stock market quotes. There are other ways to get that information that don't involve Java, and using Java in your web browser is a HUGE security risk right now. Java has been vulnerable to attack almost constantly for the last year, and has become a very popular, frequently used method for getting malware installed via "drive-by downloads." You really, truly don't want to be using it. See:
    Java is vulnerable… Again?!
    http://java-0day.com

  • How to make Siri say "What can I help you with"

    I just got the iPhone 5 (my very first iPhone as well), I hold the home button to activate Siri but she won't say anything and it only shows the text of "What can I help you with?" at the bottom. How can I make her talk? I know that I have it activated for speech because after that when I say a command she'll respond when it stops loading. Also, I added my name as a contact but I haven't had her address me once by it. Does anyone know how to fix these two things? Thank you!

    So is the only reason for her to know your name to have her know you contacts info?
    Does she ever greet you with your name?

  • As good will gesture, we can help you with the upgrade for PSE 13. We would request you to place the order for Adobe Photoshop Elements 13 as an upgrade and then we will provide you the full version serial number for the same product against the new upgra

    I RECIVED AN EMAIL FROM ADOBE AS  :  As good will gesture, we can help you with the upgrade for PSE 13. We would request you to place the order for Adobe Photoshop Elements 13 as an upgrade and then we will provide you the full version serial number for the same product against the new upgrade order"  IS THIS UPGRADE FREE AND WHAT SHOULD I DO, HOW CAN I HAVE THIS UPGRADE?

    Compare with on-line stores. The full version is often cheaper than Adobe's upgrade price.
    See this example from Amazon, but check pricing in your own region.
    http://www.amazon.com/gp/product/B00N4OLCRO/ref=s9_simh_gw_p65_d4_i2?pf_rd_m=ATVPDKIKX0DER &pf_rd_s=desktop-1&pf_rd_r=0F1GED9546928YP3PHC0&pf_rd_t=36701&pf_rd_p=1970559082&pf_rd_i=d esktop

  • HT201328 I have iphone 4 with virgin mobile canada, virgin provided me SIM unlock code online, but i don't know how to use that code to unlock my phone. Can anyone help me in this?

    I have iphone 4 with virgin mobile canada, virgin provided me SIM unlock code online, but i don't know how to use that code to unlock my phone. Can anyone help me in this?

    That's not how unlocking an iPhone works.
    The carrier the phone is locked to submits a request to Apple, wh updates their database. When that is complete, you restore the phone with iTunes to process the unlock.

  • Can you make Siri say your name each time she says "What can I help you with?"

    Can you make Siri say your name each time she says "What can I help you with?" I have done the "call me (my name) and linked her to my contacts but she rarely uses my name unless I ask "who am I?"  Can she say "What can I help you with (my name)"

    So is the only reason for her to know your name to have her know you contacts info?
    Does she ever greet you with your name?

  • Siri not saying what can i help you with

    I just received m iphone 5.
    Siri initially greeted me with the message "What can I help you with" verbally.  That has suddenly stopped.  Siri works fine for all other requests.  It seems odd that it just stopped.
    I've done a reset and restore backup and that did not change anything.  I have not done a full system restore yet.
    Any suggestions?

    Thanks, I'm betting that's it.  I tried it fresh out of the box, then activated the phone, updated the OS and reinstalled my data.
    Thanks for the reply!

  • Poll: Which LabVIEW version do you use for new projects?

    I have posted a poll on the LAVA forums, here:
    Poll: Which LabVIEW version do you use for new projects?
    Thank you for taking the time to tell us your thoughts.

    I'm giving this thread a bump to remind eveyone that we want to know your opinion.  Please vote in our poll.
    Thanks,

  • HT204023 Siri only retypes what I say, then she says sorry I can't help you with that.  Howmdo I fix iri?

    SSiri is unresponsive.  She types on the screen whatever I say and then says, sorry I can't help you with that.  All I want now is for her to play the voice message I received!

    Is Siri able to help you with anything else? Try to ask Siri what the weather is like outside or to create a calendar event.
    Also, take a look at this Apple doc -> iOS: Troubleshooting Siri

  • I lost all my data in ical does this have to do with icloud/mobil me?, I lost all my data in ical does this have to do with icloud/mobil me?

    I lost all my data in ical does this have to do with icloud/mobil me? There is no account related to my icalendar. When I ty to enter my ATT/Yahoo it says that they do not allow CALDAV?? HElP Somebody!

    Hi Steve,
    If this is dot mac or Mobile me you can still use IMAP eMail in the iCloud.
    Do not delete the old account yet. sign up for an iCloud account if you haven't.
    MAKE A NEW ACCOUNT - DO NOT TRY TO ALTER YOUR EXISTING ACCOUNT.
    I understand .mac mail will still come through. Do not delete the old account yet.
    You cannot use .mac or MobileMe as type of Account, you have to choose IMAP when setting up, otherwise Mail is hard coded to change imap.mail.me.com to mail.me.com & smtp.mail.me.com to smtp.me.com, no matter what you try to enter.
    iCloud Mail setup, do not choose .mac or MobileMe as type, but choose IMAP...
    On second step where it asks "Description", it has to be a unique name, but you can still use your email address.
    IMAP (Incoming Mail Server) information:
        •    Server name: imap.mail.me.com
        •    SSL Required: Yes
        •    Port: 993
        •    Username: [email protected] (use your @me.com address from your iCloud account)
        •    Password: Your iCloud password
    SMTP (outgoing mail server) information:
        •    Server name: smtp.mail.me.com
        •    SSL Required: Yes
        •    Port: 587
        •    SMTP Authentication Required: Yes
        •    Username: [email protected] (use your @me.com address from your iCloud account)
        •    Password: Your iCloud password
    Also, you must upgrade your password to meet the new criteria:  8 characters, including upper and lower case and numbers.  If you have an older password that does not meet these criteria, when you try to setup mail on your mac, using all of the IMAP criteria listed above, it will still give a server error message.  Go to   http://appleid.apple.com         then follow directions to change your password, then go back to setting up your mail using the IMAP instructions above.
    Thanks to dpepper...
    https://discussions.apple.com/thread/3867171?tstart=0

  • I buy my songs and then i find out they have gone to some unknown part of my laptop, they say locate my songs which i have bought but to no evail io cannot find songs which i have purchased, you are cheating me out of my money which i bought to buy songs

    so unfair itunes, you take my money, i download your songs, and then you store them in some remote part of my computer, which i then cannot retrieve , without much trouble. you people are so unfair to simple minded people like me, all i want is my music which i have legitamatlly bought off you, but it appears you steal it right back, and with passwords and such, never accept mine which is true, just have to let you have my last 18.dollars, which i have on credit, but to no use to me as you just rip it back, no wonder you are millionares and i cannot even find my songs, , so you keep my lousy 18 bucks, add it to your millions, cheers, betty gordon.

    Hi Liza225
    The article iTunes: Finding lost media and downloads will teach you how to locate your purchase. If you can not locate them, you can still redownload your purchases. Follow the steps in outlined in Downloading past purchases from the App Store, iBookstore, and iTunes Store.
    I hope it helps...

  • Help - Problem with Java Updating

    In updating to the latest version of Java - 8.45 - I must also load the Unlimited Strength encryption files.  At least, that's what the README file sez ...
    Unfortunately - when I agree to the terms, and download the "Unlimited Policy" zip file, it contains the US Export Policy encryption file, and NOT the Unlimited Policy File. 
    Can someone help me with what's going on here?  Thanks in advance ... !

    My friend looks like that u are using javax.swing.filechooser.FileFilter class as your file filter. Nothing wrong with it, but it works only with JFileChooser and not with the java.io.File.listFiles method. for that u will have to implement the java.io.FileFilter interface.
    He is the code example...
    import javax.swing.*;
    import java.io.*;
    public class FileTest implements FileFilter {
         public static void main (String args[]) throws Exception {
              new FileTest();
         public FileTest() {
              File f = new File(".");
              File [] list = f.listFiles(this);
              for (int i = 0; i < list.length; i++) {
                   System.out.println(list);
    class MyFileFilter implements FileFilter {
         public boolean accept(File pathName) {
              if (pathName.isDirectory()) return true;
              String ext = pathName.getName();
              ext = ext.substring(ext.lastIndexOf(".") + 1, ext.length());
              if (ext.equals("java")) { //check for any extension you want to list
                   return true;
              return false;

  • Help me with java file io

    Good day Sir!
    Its been a few months already that i have started learning the Java programming language on my own.
    My name is Rykiel Ramos and i am an engineering student. A subject of mine this semester actually covers C programming only, I am studying Java
    because I think it's the defacto programming language nowadays.I used book a as my reference to solve C program exercises that my teacher gives. My understanding is that whatever problems that can be solved by C can also be solved using Java.
    However, I have encountered a particular problem I
    cant solve. And the problem is :
    Suppose you have a file. Read the contents of that
    file and print the file's two consecutive lines. Then
    print two empty lines. Then print the next two
    consecutive. And so on and so fort.
    Please do help me. Thank you very much.
    Example:
    ***********************Hello.txt***********************
    Hello
    World!
    How
    are
    you?
    *************after executing the program**************
    Hello
    World!
    How
    are
    you?
    The implementation I have tried and failed is the BufferedReader-FileReader-File combination then assigning to a String array per line of the lines read. But, my implementation isn't working. Do you have any suggestions? Or better yet, can you show me a simple source code that works?
    Thank you very much for your help.Pls send your response also to my e-mail so that i can save it.thanks again

    class X {
         static boolean print(String s) {
              if (s == null)
                   return true;
             System.out.println(s);
             return false;
         public static void main(String[] args) throws Exception {
             BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream("x.txt")));
             while (true) {
                  String s;
                  if (print(in.readLine()) || print(in.readLine()))
                       break;
                  System.out.println("\n\n");
             in.close();
    }Enjoy Java!

Maybe you are looking for