Can anybody help me produce a Java code??? HELP GREATLY APPRECIATED!!!

This is the goal:
Write a program that produces block letters for the following letters which could be read into your program: A, B, C, E, F, G, H, I, L, O, P, T, or U.
The user should input ONE letter from the keyboard. The user should also input a width as an integer to determine the width of the letters. This input should be at least 5 and up to 20; if the user enters less than 5 or more than 20, issue an error message for the user and quit the program.
Replies are gratly appreciated!!!

jk89computer wrote:
To add to my original topic,
My question is can anybody produce a java program that can do the following:
Write a program that produces block letters for the following letters which could be read into your program: A, B, C, E, F, G, H, I, L, O, P, T, or U.
The user should input ONE letter from the keyboard. The user should also input a width as an integer to determine the width of the letters. This input should be at least 5 and up to 20; if the user enters less than 5 or more than 20, issue an error message for the user and quit the program.
For example, the letter A would be formed by:
* *Thank you for adding more complete requirements for us to do your homework for you. We'll get right on that. Donuts are on the table, help yourself to them while you wait.

Similar Messages

  • How doest jdk docs help as in writing java code?

    hi i wonder how does jdk docs help as in writing java code because if i google a java code the jdk docs always becomes the result of my search but in my experience jdk docs never helps me.
    is there any one know how to use jdk docs? and how to get the code from there.
    im telling about jdk docs from here http://download.oracle.com/javase/1.4.2/docs/api/
    cross posted from http://www.thenewboston.com/forum/viewtopic.php?f=119&t=13778
    Edited by: 871484 on Jul 18, 2011 4:18 PM

    871484 wrote:
    ok can any one give me example how to use jdk docs? for example this code
    Your question still does not make any sense, and you still haven't clarified what you're not understanding.
    However, if you think that just by reading the API docs, with no other training or study, that you will be able to write that code, then you are seriously misunderstanding the purpose of the docs.
    Obviously English is not your native language. You grew up speaking some other language at home and with your friends, and at some point in school or as private study, you started to learn English. You learned about the grammar and the alphabet and pronunciation, sentence structure, word order, etc. Now you have the basics of how the language works, and you know some words. When you want to learn new words to fit into the structure you have learned, you use a dictionary.
    If you didn't study the grammar, sentence structure, etc., and just said, "I want to learn English. I will look at a dicationary," clearly that would not work.
    Right?
    So, since you now understand and agree with the English example, let me state something that I hope is obvious to you by now: The API docs are your dictionary. They are not a substitute for learning the language basics.
    Furthermore, once you know the language basics in English and have your dictionary, you still won't know how to write a resume (which you may know as a CV). You will look at examples and perhaps take a course on resume (CV) writing. Just reading a dictionary won't help you write a resume(CV). Similarly, if you know some Java basics, you can't learn how to write a Swing app just by reading the Javadocs. You'll look at tutorials and examples. Then, once you know the basic structure of a Swing app, you'll look to the javadocs for more details about more kinds of GUI classes--different buttons and windows and panes and panels and layout managers, etc.

  • Can anybody send me ebook of java for scjp

    hi
    i m new to java ,want to become scjp.
    can anybody send me ebook of java for scjp .
    my id is "[email protected]"
    waiting for replay
    thanks

    no, we're not going to send you copyrighted material belonging to others.
    You're asking people to commit a crime on your behalf, that's criminal behaviour that can get you in prison.

  • Trying to find a Passive Voice counter or detector for my daughters in school - they've been told to use MS Word - hoping I can identify same in Pages.  Any insight is greatly appreciated.

    Trying to find a Passive Voice counter or detector for my daughters in school … they've been told to use MS Word … hoping I can identify same in Pages.  Any insight is greatly appreciated.

    I take it you are objecting to the lack of passivity in my statements.
    I assumed nothing.
    My statement stands. Healthy humans are making themselves educational cripples by clutching at "smart solutions", which aren't.
    Ms Word manages to mark down the Gettysburg Address and Martin Luther King's "I have a Dream" Speech.
    It is no wonder people can no longer spell, find their way around, know where, or what anything is, let alone think for themselves, and get diabetes in their teens. All because they jump on cue when anyone says "Buy".
    Peter

  • Who can help me write this Java code show the prime number ???? PLEASEEEEEE

    Write java code print prime number like this
    Sample Screen Print:
    Initial matrix with N = 37
    2 3 4 5 6 7 8 9 10
    11 12 13 14 15 16 17 18 19 20
    21 22 23 24 25 26 27 28 29 30
    31 32 33 34 35 36 37
    Intermediate results (after 1st iteration)
    2 3 5 7 9
    11 13 15 17 19
    21 23 25 27 29
    31 33 35 37
    Intermediate results (after 2nd iteration)
    2 3 5 7
    11 13 17 19
    23 25 29
    31 35 37
    Intermediate results (after 7th iteration)
    2 3 5 7
    11 13 17 19
    23 29
    31 37
    Final results
    2 3 5 7 11 13 17 19 23 29
    31 37
    How to write this code ?
    Please Help me!
    Thank you so muchhh ?????

    h2. {color:#ff0000}Multiplepost{color}
    Replies here: http://forum.java.sun.com/thread.jspa?threadID=5241012&tstart=0
    There is a useful answer the original thread. Answer it, or ignore it as you like, but don't create multiple threads.

  • How can i generate BARCODE Images using JAVA Code

    Hello ,
    My requirement is to generate BarCode Images to Print using JAVA Code.
    User will give only
    1) String.as Input Parameter and
    2) Type of Encoding you want to apply on to the String.
    outPut : code should generate Bar Code Images as per the requirements.
    can any one help me out with jars ????? or any link which can provide me start.

    1) I have requriement like generate doc file with
    more than one barcode image on that document.???
    So?
    If your chosen "doc file" format supports inclusion of multiple images there's no problem.
    If it doesn't, choose another format.
    2) I am able to generate .doc file but in which
    format i should open that doc file.????
    The same format you used to create it.
    3) Main thing is how can i put more than one barcode
    image on that doc file????
    That would depend on the file format and the API used to create it.
    is any one faced the same problem or gone through
    same requirement.
    Almost certainly. And they solved it too, given the document I'm looking at right now which is an e-ticket for an airline that has many barcodes and other generated images on it.
    So keep on trying, grasshopper, and you may find enlightenment.

  • Can we call DLL method in jave code

    hi,
    can we call DLL file method in java Code or program.

    See
    http://forum.java.sun.com/thread.jsp?forum=52&thread=179765

  • Urgent java code help needed

    i need java code for writing following lines in a file
    <?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
    "http://www.wapforum.org/DTD/wml_1.1.xml">
    Moreover i need code for reading word by word html file.
    PLease reply as soon as possible.
    iwapsms

    for the html-part there are several html-parser, that bould whole parsetrees, which you can traverse (walk) through as you whish. just check google for it (something like: java html parser).
    if that xml you have there is in String-form, just use a Filewriter
    BufferedWriter writer = new BufferedWriter (new FileWriter (new File ("FilePath/filename.xml")));
    writer.write (xmlString);
    writer.close();however, if you have to juggle xml tags, content and attributes a lot, i'd recomend jdom to construct the xml and saxParser to write it.
    again jsut google for it.

  • Can XE run scheduled jobs against java code

    I am integrating into GetResponse (www.GetResponse.com) using their API using Java. My  program flow is basically have my Data in CSV file be read by Java code which uses the GetResponseAPI to upload the data to my GetResponse account.
    Can this be process be scheduled to run in Oracle XE i.e  have Java code automated to run once a day?

    However, when I put my server program to the LIVE server outside the network the client side says cannot connect to the server because: Connection Error, Connection refused: connect. So I read some stuff about firewall and NAT on the web but i was shamed that I don't understand there is any solution to this.What do you want us to do? You already know that the problem probably is that you need to open port 9999 in the firewall, and you probably also need to configure it for port forwarding.
    Most clients will be able to connect after that, but some might still have problems. E.g. some companies don't allow clients to connect to other ports than a few well known ones (e.g. 21, 80 and 443)

  • Search java code help

    I am writing a small Java program and need help using a simple search code. Here is the code
    public int indexOf(EltType e) {
            int i=0;
            for (i = currsize; i < currsize; i++){
                things[i] = e;
                e.equals(get(i));
            return -1;
        }Basically I want to search the array for e, and return its position, or -1 if e is not found. I know I have to use .equals(i) to compare e and get(i) but unsure where it goes.
    Here is the method that calls it:
    public void searchtester() {
            MyList<String> searchlist = new MyList<String>();
            searchlist.add("tangerine");
            searchlist.add("apple");
            searchlist.add("mango");
            searchlist.add("lime");
            searchlist.add("carrot");
            for (int i = 0; i<searchlist.size(); i++)
            System.out.println("searching for \"" + searchlist.get(i) + "\", result="
                + words.indexOf(searchlist.get(i)));
        }Please let me know what I am doing wrong.

    middle wrote:
    sorry kevinaworkman, not trying to ignore any advice, just very new to java so trying to figure this out. It's okay, I just know from experience that breaking it up into smaller pieces will save you a ton of headaches.
    Ok so I would imagine that loop:
    for (i = currsize; i < currsize; i++)would run onceTake a look at the tutorial on [the for statement|http://java.sun.com/docs/books/tutorial/java/nutsandbolts/for.html] . If i starts out equal to currsize, and is only ever incremented, when will it be less than currsize? But even assuming that the loop runs once, what good would that be? Wouldn't you want the loop to run as many times as there are elements in your array?
    things[i] = e;I'll give you a hint: if this line were executed, it would set the element at position i in the array equal to e. You want to check for equality, not set the whole array equal to e, right? Do you mean == in an if statement?
    e.equals(get(i));Again, if this line was executed, it would check for equality between e and whatever get(i) returns. But then what are you doing with that boolean?
    I want to see if i is equal to e then the result I want is the position of e and if i does not equal e then I want it to result in a -1, the issue is that it is giving me "-1" for all the results when I know that the first 3 items are in the list.You might want to step through your program with a debugger to see what's happening line by line. Or better yet, step through it with a piece of paper and a pencil. Go through the program as if you were the computer, following your program (and not the logic in your head you think the program does) exactly.
    Some other things you might want to consider: the [if statement|http://java.sun.com/docs/books/tutorial/java/nutsandbolts/if.html] , arrays , and the above mentioned for loop tutorials.

  • How can i add more statements in java code dynamically...

    I have a (business works) BW process in TIBCO which has many activities including �java code�. In java code activity I have some if statements like
    if (Country.equals("USA�))
    Country code = 1
    else if(Country.equals("GERMANY�))
    Country code = 49
    the above information is coming from database. now my project is deployed and running. In future, if they add more countries in database how I can include them dynamically without changing my BW process java code activity and redeploying again. Is there any solution?
    Please advice.

    You won't reconfigure the Java application without redeploying. This is one of the reasons that including data in the code is bad.
    If you created a file which contained data like this:
    Canada <tab> 1
    USA <tab> 12
    Germany <tab> 6
    Then your program could read the file into a map. The map could be used to lookup the country code based on the name.
    In the future, you could change the file to:
    Canada <tab> 1
    USA <tab> 12
    Germany <tab> 6
    France <tab> 17
    China <tab> 2
    And the program wouldn't need to be changed. You would just need to send out the new country file.

  • How can i install any program using java code

     
    Hi friends,
    i want to know how can i install any software using c# code.

    Hi,
    You may change your title, Since this is C# forum.
     >>i want to know how can i install any software
    usingc# code
    So what kind of your software?
    In C#,we can install and uninstall "*.msi" files (setup).
    The code to install software without user interface is:
    private void installSoftware()
    Process p = new Process();
    p.StartInfo.FileName = "msiexec.exe";
    p.StartInfo.Arguments = "/i \"C:\\Application.msi\"/qn";
    p.Start();
    For more detailed information, please refer to article
    C# - Installing and uninstalling software in codeproject.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can i edit registry using a java code

    hi
    i want to configure internet explorer settings using java code.one way to configure is to edit registry iteslf (correct me if i am wrong).
    now please tell me if there is any way to edit registry using java code.
    thanks and advance
    shwetank

    If you don't want to write the code yourself, check here:
    http://cogentlogic.com/cocoon/CogentLogicCorporation/Home.xml

  • I have a Mac OS X 10.6.8, with built in webcam and mic. Recently none of my systems recognise/detect the camera/audio. Am not sure how this happened but am hoping to reset somehow to fix. Any help/ suggestions how to do this is greatly appreciated!

    built-in webcam on my Mac laptop (running OS X version 10.6.8). Today Skype would not detect my camera and YouTube won’t either. Any ideas on how to fix this?Any help would be greatly appreciated!

    Hope info from this article is helpful.
    http://support.apple.com/kb/HT2090
    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the appropriate method.
    If this does not help, contact Apple.
    Best.

  • How i can execute the sql query in java code

    I already have sql query in jave plateform i need to execute this code how i can do that. i have unix env and with oracle database. should i just run this query in my sqlplus. this file has extention .java. thanks

    you can create a project in JDeveloper add the java file to it, add the Oracle JDBC library to the project properties and then hit the run button.

Maybe you are looking for

  • Delta Queue in BI System

    Hello friends I just wanted to know whether there is any delta queue maintained in the BI source system apart from the R/3 system? If yes how does it function? Secondly, what is the max no of char in the Key fields in DSO(BI 7.0) that we can have? re

  • Left outer join usage in obiee BMM layer

    Hi All, We lately started using left outer join in our bmm layer , to meet the requirement expectation . problem : We have two tables  Fact A , Dim B . There is an join int_id column to join them . Problem is... in table Dim B , we have 3 millions ro

  • Dynamic Side menu question!

    Hi All Can someone help me with a menu issue I have, basically the problem seems very simple. All I want to do is specify that when a specific 'Entry Point' item is selected the dynamic menu is closed when the page is viewed. The reason for this is t

  • Not checking for updates

    Macbook pro late 2013 OSX Yosemite 10.10.3 Hi I have Preference settings App Store enable for all auto updates. Despite that i see every time i open app store i have over 8 updates to install, more over from 1 week ago. I think app store is not auto

  • Can itune account be sync to separate apple tvs

    I have a 1st generation and latest model of apple tvs.  Can I sync with both at the same time? Another problem that I currently have is that my latest model cannot find my mac for hime sharing.