Self learner beginner

I am teaching myself java with a book just for fun. Two of the problems are to create the following:
A. Program that uses "user input" character and prints the number of rows and each new line will be one space to the right.
Example: If user inputs the letter "D" I should get the following output with each new line one space to the right. The items in parathesis are only for explanantion.
D (This is the user input)
4 (This is how many rows will be printed)
ABCD (This line is flush to the left)
ABC (This line should be one space to the right)
AB (This line should be two spaces to the right)
A (This line should be three spaces to the right)
B. The Second program should be able to count the number of vowels in a sentence.

Here's what I had so far. But the rows aren't indenting one space to the right on each new line. I am following the format in the book I use but it doesn't explain how to make each new output line move one space to the right. If you run this you will see what I am trying to explain.
public class CharsLoop1
public static void main(String[] vars) throws Exception
int i,j;
int ROWS;
char ch,userInput;
System.out.println("Enter a letter:");
userInput = (char)System.in.read();
ROWS = userInput - 'A' + 1;
System.out.println(ROWS);
for(i=1; i<= ROWS;i++)
ch=('A');
for (j=1;j <=ROWS+1-i;j++)
System.out.print(ch);
     ch++;
          System.out.println();{System.out.print(" ");}
}

Similar Messages

  • How I can begin to start on self learning basis PL/SQL I mean writing block

    Could you please let me know about how One can get the expertise and start on self learning basis PL/SQL procedural on which actually HTML DB is written
    I am very much interested in learinig this language please provide me any useful link books online material in a proper way.
    Thanks in advance

    www.google.com.
    You'll find plenty of resources about pl/sql.

  • ABAP self-learning

    Hi everyone,
    I'm trying to learn ABAP from home by self learning. I want to get a feel of ABAP. Need not be a professional with all advanced features and stuff, but just for self knowledge.
    I was advised that I can learn by installing "Mini Web AS 6.20 ABAP Engine 3 (English)" on my home PC. It seems that it has its own editor, compiler etc etc. which should let me learn basic ABAP atleast.
    Am I missing something? I have "SAPinst_SP_WAS640.exe - 726 MB" Is this the same thing? Do I have all I need? Do I need SAP DB also.
    I have no clue how to get started.
    All suggestions and views appreciated.

    Here is a list of web sites that you might find helpful:
    http://www.henrikfrank.dk/abapuk.html
    http://www.abap-cafe.com/
    http://www.sapwired.com/ABAPCentral/
    http://www.basisguru.com/
    http://www.geocities.com/ResearchTriangle/1635/
    http://www.ct-software.com/reportpool_frame.htm
    http://www.intelligenterp.com/
    http://www.intelligenterp.com/feature/archive/index.jhtml?_requestid=1015045
    http://www.intelligenterp.com/columns/archive/index.jhtml?_requestid=1015143
    http://idocs.de/
    http://mini.net/cetus/oo_abap_objects.html
    https://websmp104.sap-ag.de/~SAPIDP/002006825000000234912001E
    http://members.aol.com/_ht_a/skarkada/sap/index.htm
    http://sapassist.com/
    http://www.sapfans.com/
    http://help.sap.com/
    http://www50.sap.com/company/saplabs/northamerica/
    http://members.xoom.com/pmvsr
    http://www.davatz.ch/
    http://www.sappoint.com/
    http://www.antarcon.de/
    http://www.wisgurd.de/index3.html
    http://www.tripod.lycos.es/ Spanish sap site
    http://www.sap-basis-abap.com/

  • BW Self learning project or case study

    Hi All, Does anyone can help me to get BW Self learning project or case study, as due to my location and work nature I can't join BW project in class, as it demands access only from inside the college, can't access from remote location, but I do have BI7 and R3 access, thanks.

    Hi Frank,
                  If you know already Bw then In IDES system work on demo cubes & itz reports...........
    Hope it will help you.....

  • Highlevel information on creating a environment for self learning

    I am new to SAP and hoping to create an environment at home for self learning. I have a strong back ground in infrastructure/ unix / systems adminstration/ oracle database etc. I was unable to find information at a high level how I can go about creating an environment for learning the SAP Basis and Netweaver administration. Can some one please clarify the following:
    a) Is it possible to get a trial version that I can use to install the SAP or I will have to buy a license?
    b) Since, I am not using it for production - can I renew this trial version by changing the date or there are ways to request new trial keys?
    c) Can you please provide the list of all the softwares that I need to install to get a full SAP environment setup?
    Edited by: neeraj mendiratta on Dec 26, 2007 1:58 PM

    Hi,
    You can buy the IDES version online. See the below thread:
    http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.biztalk.general&tid=4a9dac5f-0e74-4422-aef5-aa2bcc7b3831&p=1
    Have a look at any search site where in you can find lot many sites to purchase SAP IDES.
    However, you can simulate the landscape. If you buy the license, you will have access to SAP market place, download the latest patches and also look for solutions.
    Also, all the software that are required (apart from the OS) are bundled in the package. You need not buy any on the shelf software additionally.
    Rgds,
    Raghu
    Reward, if you find the solution informative.

  • Voice synchronization with text(words) for a self learning project.

    Trying for voice synchronization with text(words) for a self learning project.  I have about 20 swf files with lengthy text to synchronize. Please suggest the best possible way, not the tedious manual way, please...Thanks..

    Trying for voice synchronization with text(words) for a self learning project.  I have about 20 swf files with lengthy text to synchronize. Please suggest the best possible way, not the tedious manual way, please...Thanks..

  • Self Learning Oracle Financials

    Hi all,
    I am presenly working as a software engineer (Oracle Developer(D2K) ,Oracle Dba). Now i want to work in Oracle Financials (ERP). So for that i am thinking for doing Self Learning for that .So can any body suggest me eBooks or links from where i can get the details of Oracle Financials as biggener.
    Thanks In Advance

    How about you start by taking free video tutorials at http://handsonerp.com and see how you feel about ERP.
    Regards

  • SAP Personas free trial / self learn

    Hello Experts,
    Is there a place where we can try the new SAP personas or self learn it online ?
    Regards
    Shabir Ismail

    Hello,
    I think you are asking in exactly right time, because there is running a free course on openSAP. Check this out:  Courses and look for course SAP Screen Personas.
    Best regards

  • RAC self learning

    Hi Experts,
    Can you please guide me on " How to learn RAC by self?"
    I have referred 2Days RAC guide. Which is good but I feel hard to practice by self.
    I have also gone through some metalink video document, which is helpful, but still I'm not completed fully.
    Please guide me some more useful materials/ (video tutorials) to learn RAC by self

    Hi
    If you search on google, there are some blogs that give step by step instructions on how to configure rac in a virtual server. May be that should help getting confidence.
    Then Oracle's documentation on RAC is teh best in my option. K.Gopal Krishnan's book on RAC is also good. But Oracle's documentation is the best.
    Dan Norris has also a good presentation on rac for beginers.
    Hope this helps
    MSK

  • Babie steps - self-learning java

    i'm currently going through the book "     JavaScript Programming for the Absolute Beginner by Andy Harris".
    can anyone spot my problem with the few lines below? i'm thinking it's at the "dieRoll = " line and thw way i've multiplied a variable ... not too sure though.
    <script>
    // m.j. lorente
    // Multisided Die Roller
    var dieSides = 0;
    var dieRoll = 0;
    // request variable inputs
    dieSides = (prompt("How many sides would you like your die?", ""));
    // roll the die
    dieRoll = Math.floor(math.random() * + dieSides +) +1;
    // display roll results
    alert ("You rolled a " + dieSides + " sided die and rolled" + dieRoll +);
    </script>

    Stay away from Horton, IMHO. Here are my recommendations for learning Java (you should see some overlap with jverd's suggestions):
    Installation Notes - JDK 5.0 Microsoft Windows (32-bit)
    Your First Cup of Java
    The Java� Tutorial - A practical guide for programmers
    The Java� Tutorial - Trail: Learning the Java Language
    New to Java Center
    Java Programming Notes - Fred Swartz
    How To Think Like A Computer Scientist
    Introduction to Computer Science using Java
    The Java Developers Almanac 1.4
    Object-Oriented Programming Concepts
    Object-oriented language basics
    Don't Fear the OOP
    Books:
    The Java Programming Language - 4th Edition
    Head First Java, by Bert Bates and Kathy Sierra
    Thinking in Java (Free online), by Bruce Eckel
    Core Java, by Cay Horstmann and Gary Cornell
    Effective Java, by Joshua Bloch
    http://java.sun.com/developer/Books/javaprogramming/

  • LF Advice/Tips/Sources for self learning

    I am on holidays for summer and would like to run through some medium to high lvl java tutorials. If anyone has some great sites would you care to share with me =). I am open to anything, i rov learning, thanks.

    Darryl.Burke wrote:
    Plenty more at [Project Euler|http://projecteuler.net/]
    dbOh, dammit Darryl! I was trying to forget that site: now I'm at it again!
    ; )

  • Looking for Self Learning/Training

    Hello All,
    I'm completely new to SAP and would like to begin the learning required to use/implement the tool. Can anybody point me in the right direction? I read about modules but honestly I've no idea wth it is. Your help is appreciated.
    Thanks,
    Rola

    Hi Rola,
    It depends on which area you want to learn. For example, in ERP system we have finance module,  production planning, material management, sales, etc.
    You can find SAP online help documentation: 
    http://help.sap.com/
    For live and virtual training offerings, course booking, and an overview of SAP education services.
    www.sap.com/services/education

  • Self learning Learning Peoplesoft HCM

    I am a HR professional and would like to learn Peoplesoft HCM - the functional side.
    I am not from an engineering background.
    Can you please guide me on where to download the software, installation and also manual to selflearn.
    Thank you,
    Venus

    Go to edelivery.oracle.com and search for software that you are looking for.
    Good Luck.
    BsB

  • New to Flash, trying to self-learn

    Before I edited the .fla file, the movie would work when I
    clicked on the executable file. Everything worked ok. Then I edited
    the .fla file to make updates. Now when I click on the executable
    file I get a box with a big blank white rectangle and above it it
    says Flash, then file, view, control, help. Why doesn't the program
    run anymore and how can I fix it?

    are you using the timeline and motion tweens? for a plane to
    fly across the screen, you would need a movieclip symbol of the
    plane. create a layer in the timeline that corresponds to this
    symbol and place it on the start position on the stage. create a
    new keyframe in the timeline several frames ahead, and with this
    keyframe selected, move the plane to the end position. Then click
    on one of the frames in between the start keyframe and the end
    keyframe, and in the properties palette, select Tween: Motion.
    replace the playhead at the beginning of the timeline and hit
    return to see the animation in the authoring environment. if you
    want to make it last longer, add more frames between the start and
    end frames (select a frame in between and hit F5 to add frames or
    Shift-F5 to delete frames). this is pretty basic, but it should get
    you started...
    good luck,
    albee

  • Basis exp. in ECC, Solman Want to Learn Netweaver Components please help me

    Dear All,
    I'm basis consultant having experience in ECC6.0 and Solution Manager. As it is very essential to learn Net-weaver Components to survive in SAP, I humbly request all the friends and Professionals who are already having experience in Net-weaver components and learning Net-weaver components.
    I can only involve self learning according to my situation and environment. Please guide me all my dear friends and Professionals.
    Thanks & Regards
    Balamuralikrishna
    <MOVED FROM PI FORUM>
    Edited by: Prateek Raj Srivastava on Aug 2, 2010 12:02 PM

    Hello
    This forum is not designed for career advice. This forum is for PI technical issues only. Please open your thread in a more appropriate forum.
    Education/certification issues
    1) [SAP TechEd|SAP TechEd;
    2) [SAP Certified Professionals |SAP Certification;
    This thread will be locked and deleted.
    Regards
    Moderator

Maybe you are looking for