answersLogoWhite

0

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"

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

How to write a program to generate the following pattern abcdefgfedcba abcdef fedcba abcde edcba abcd dcba abc cba ab ba a a?

# include main(){ int n=65,s=1,i,j,k,l; for(i=1;i=1;i--){ n=65; for(j=1;j


What is the electrical symbol for phase rotation?

In Canada the phase sequence colours are A = red, B = black and C = blue. As for CCW rotation on a three phase electrical power system I presume that you are talking about motor connections. There are meters that can be connected to the motor not connected to the system. You just spin the rotor in the direction that you want the motor to run when connected and the meter will tell you what the connection will be to the power system to obtain that direction. Be it ABC or CBA.


How to parallel the Dyn1 and Dyn11 Transformer?

you keep the hv & lv on the dyn11 tx straight in phasing. you then put a cross on any two phases on the hv side of the dyn1 tx, and do the same cross with the phases on the lv side of the tx. for instance lets say we cross a & c phases on the hv & lv sides of the dyn1 tx. now draw a diagram with the four tx, split them up, 2 x dyn1, 2 x dyn11. now on the diagram where you have dyn1 tx, change the the phase plates to read cba left to right, also change the lv side to match. leave the phase plates on the dyn11 tx alone to read abc left to right on both sides. now draw the cables going between them on the hv & lv sides. now if a phase always goes to a phase and b & c phases do the same it will all tie in. prove it to yourself and follow a phase threw all the tx's, do the same will b & c phases. I do it all the time at my job, works every time.


What tool is used to help create cost effective ways to protect our health and environment while considering the risks?

The tool commonly used to create cost-effective strategies for protecting health and the environment while assessing risks is a Cost-Benefit Analysis (CBA). This analytical method evaluates the economic advantages of health and environmental interventions against their costs, aiding decision-makers in prioritizing initiatives. Additionally, tools like Environmental Impact Assessments (EIA) and Health Risk Assessments (HRA) are also utilized to systematically evaluate potential impacts and inform policy decisions.


What is the algorithm for reverse a given number recursively?

//Function that reverses a given number int reverse(int num) { static int sum,base =1; sum=0; if(num>0) { reverse(num/10); sum += (num%10)*base; base*=10; } return sum; }

Related Questions

What is abc spelled bakwards?

CBA


What is the Black Butler Item Code?

Abc-cba-caba


What is a b c when abc plus acb equals cba?

'abc', 'acb', and 'cba' are all the same number. 459+495=954 so A is 4 B is 5 and C is 9


Prove that the bisectors of 2 adjacent supplementary angles include a right angle?

∠DAB + ∠EBA = 180� ⇒ 2∠CAB + 2∠CBA = 180� (Using (1) and (2)) ⇒ ∠CAB + ∠CBA = 90� In ∆ABC, ∠CAB + ∠CBA + ∠ABC = 180� (Angle sum property) ⇒ 90� + ∠ABC = 180� ⇒ ∠ABC = 180� - 90� = 90� Thus, the bisectors of two adjacent supplementary angles include a right angle.


How many ways can you arrange 3 things?

6 -- abc, acb, bac, bca, cab, cba


What are the ways to name an angle?

The VERTEX of the angle is always in the middle... so if it is angle ABC, then you can also name it CBA as long as the vertex letter is in the middle, usually there are only 2 ways to name an angle.Also, if there aren't any other angles with the same vertex, you can just call angle ABC, angle B.Summary: If you have an angle:the vertex is labeled B, the others are A and C. what can you call the angle?Answer: ABC,CBA or B


What does CBA stand for in Hockey?

CBA stand for Cool but and


In slang what does cba mean?

CBA means Can't Be Arsed


What do you mean cba?

cba means can't/cannot be arsed :]


What does cba text talk mean?

cba meens cant be asked


What are three ways to name an angle?

Acute: 0 < X < 90; Right: = 90; Obtuse: 90 < X < 180; Straight: = 180; Reflex: 180 < X < 360. The Acut, Right, Straight and Reflex are actually classifications of an angle. Naming of an angle is done by identifying the vertex and a combination of the vertex and points on the two rays. For example an angle with points ABC where B is the vertex and A and C are points on the accompanying rays may be named as angle B, angle ABC or angle CBA. These can be written with the symbol for angle placed before the B the ABC and the CBA.


Where is CBA Netbank located?

CBA stands for the Commonwealth bank of Australia. CBA Netbank is the #1 online bank in Australia. It is the most trusted for online banking in Australia.