answersLogoWhite

0


Best Answer

/* -----a //- is space

* -----ab

* ----abc

* --abcd

* -abcde

*/

import java.io.*;

class RevPyrA

{

protected static void man()throws IOException

{

BufferedReader in=new BufferedReader(new InputStreamReader(System.in));

System.out.print("Enter the limit: ");

byte a=Byte.parseByte(in.readLine());

for(byte i=0;i<a;i++)

{

System.out.println();

for(byte j=a;j>i;j--)

System.out.print(" ");

for(byte j=0;j<=i;j++)

System.out.print((char)(97+j));

}

}}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program in java to print a ab ABC?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you print the pattern ABCdcba ABC cba?

There are many different ways to print out a random sequence of letters on the screen. I believe that the shortest possible line of code that does this is: System.out.println("abcdcba abc cba"); For a program, here is the shortest program that runs on a Java 1.6 compiler: public class A{public static void main(String... a){System.out.println("abcdcba abc cba"


Explain the structure of a java program?

The fundamental structure of any Java programme should look like: [package declarations] [import statements] [class declaration] An example is given below: package abc; import java.lang; class Demo { public static void main(String[] args) { Sytem.out.println("Hello! World"); } } //The file containing this class must be named Demo.java


How do you debug a program that is already running?

Assuming that you have written a program named abc.c and created executable abc. Steps: 1. run your program from command line ./abc 3. get the PID processid of the program from PS aux | grep abc 3. start the gdb from command line 4. type following command on GDB prompt (gdb) attach PID where PID = your program's processid got from step 1.


How to convert lowercase to uppercase in java?

In Java you can invoke the toUpperCase()method on a string to convert it to a new string with all upper case characters.For example, "abc".toUpperCase() returns "ABC"Likewise, the static Character.toUpperCase(char ch) method takes a single character and returns the upper-case equivalent of that character (e.g. 'a' -> 'A').


How do you create string array in java?

String[] myStringArray = { "abc","def","xyz" }; You can access elements of this array by using the [index] operation. Ex: myStringArray[0] will contain value "abc" and myStringArray[1] will contain value "def" and so on...

Related questions

How do you print the pattern ABCdcba ABC cba?

There are many different ways to print out a random sequence of letters on the screen. I believe that the shortest possible line of code that does this is: System.out.println("abcdcba abc cba"); For a program, here is the shortest program that runs on a Java 1.6 compiler: public class A{public static void main(String... a){System.out.println("abcdcba abc cba"


How can program transcripts from ABC News Australia be obtained?

Program transcripts from ABC News Australia can be obtained from ABC'S Australia's website. There the the program transcripts are available to the public.


Who can make abc worksheets for me?

You can find and print ABC worksheets on the following sites....www.writingwizard.longcountdown.com/ or www.writingwizard.longcountdown.com/alphabet_worksheets.html


How they write ABC in UK?

ABC is the same doesnt matter in which country it is written.


Explain the structure of a java program?

The fundamental structure of any Java programme should look like: [package declarations] [import statements] [class declaration] An example is given below: package abc; import java.lang; class Demo { public static void main(String[] args) { Sytem.out.println("Hello! World"); } } //The file containing this class must be named Demo.java


Where can you find crossword puzzles to print for kids?

There are a number of websites that have crossword puzzles for kids that one can print. They can be found on sites such as 'abc teach', 'puzzle choice' and 'Print Activities'.


How do you write i am in third grade in cursive?

just write down abc


What is literate person?

read , write, and spell the abc


How do you debug a program that is already running?

Assuming that you have written a program named abc.c and created executable abc. Steps: 1. run your program from command line ./abc 3. get the PID processid of the program from PS aux | grep abc 3. start the gdb from command line 4. type following command on GDB prompt (gdb) attach PID where PID = your program's processid got from step 1.


How do you write an ABC's of things you might write this year?

don't ask stupid questions


Write an awk program to search an element from an array?

Actually, if you use the awk language with associative arrays there is no need to search for an element of an array:val["abc"] = 2 ;will set the element 'abc' in the list 'val' to a value of 2. Since all values start out as blank or 0, finding if an element has a value is easy:if (val['abc'] == 2){# found the value}


How to convert lowercase to uppercase in java?

In Java you can invoke the toUpperCase()method on a string to convert it to a new string with all upper case characters.For example, "abc".toUpperCase() returns "ABC"Likewise, the static Character.toUpperCase(char ch) method takes a single character and returns the upper-case equivalent of that character (e.g. 'a' -> 'A').