answersLogoWhite

0

In your main method: // Declare and initialize the array String names[] = {"Ana", "Bertha", "Cecilia", "Dora", "Emily"}; // Print backwards for (int i = names.length - 1; i >= 0; i--) System.out.println(names[i]); If you want to print the individual texts backwards (like "Dora" --> "aroD"), the StringBuffer class offers a method to do precisely that.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

How to Sort values in ascending order in java?

// If your values are stored in an array... Arrays.sort(valuesArray); // If they're stored in a List... Collections.sort(valuesList);


A Lists and tables of values can be stored in?

main


How are time values stored in Excel?

Times are stored as decimal fractions representing portions of a day.


How many different values can be stored in 16 bits?

65,536


Why does god model Catholic values?

The question has it backwards. Catholic values model God, since the purpose of life, in Catholic Theology, is oneness with God.


What is a group of Strings called?

A group of Strings is typically referred to as an array or a list. These are standard data structures that allow multiple String values to be stored and manipulated together.


What is the encoding technique called that is used to store negative numbers in the computers?

What is called a two's complement. A computer cannot store negative values (non-positive logical values don't exist in binary logic), so it transforms the value into its "positive complement", which can be stored and acted upon.


How the values stores in HashMap?

values are stored in a bucket in hashmap, if two objects map to same bucket location by hash function then they are stored as same bucket location but in a form of linked list.


How does upholding long accepted human values help in progress of an individual and nation?

When you uphold your values you are not moving backwards. This will help you move forward because you are not compromising your principles.


How many different values can be stored in 1 bit?

0 o 1


Writing a program which prints a text of 4 lines consisting of characters integer values and floating point values using print statement?

To write a program that prints a text of 4 lines consisting of integer and floating point values, you can use formatted strings in Python. Here's a simple example: int_value = 42 float_value = 3.14 print("Line 1: Integer value is", int_value) print("Line 2: Float value is", float_value) print("Line 3: Sum of values is", int_value + float_value) print("Line 4: Float value to two decimals is {:.2f}".format(float_value)) This code snippet prints four lines, showcasing both integer and floating point values.


Input values for a function is called?

The Input or X values are called the Domain.