I need help with this coding because I am having trouble with a lab of my class. I am up for any hints/tips and techniques... and code if desired. Well I am hoping that someone will respond and thanks.

Try this:

public class Reverse{
    public static void main(String [] arg) {
        String s = arg[0];
       
        for (int j = s.length()-1; j >= 0; j--) {
            System.out.print(s.charAt(j));
        }
    }
}

A quick Google search will proved lots of information. Reversing a String is a very common classroom exercise.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.