mirror of
https://github.com/System-End/APCSA.git
synced 2026-04-19 23:32:54 +00:00
23 lines
555 B
Java
23 lines
555 B
Java
/* Lesson 2 Coding Activity Question 2 */
|
|
|
|
import java.util.Scanner;
|
|
|
|
public class U5_L2_Activity_Two {
|
|
|
|
/* Add the method reverser here */
|
|
|
|
public static void reverser(String s) {
|
|
for (int i = s.length() - 1; i >= 0; i--) {
|
|
System.out.print(s.charAt(i));
|
|
}
|
|
System.out.println();
|
|
}
|
|
|
|
// You can uncomment and add to the main method to test your code
|
|
// You will need to remove/comment out this method before checking your code for a score
|
|
/*
|
|
public static void main(String[] args){
|
|
|
|
}
|
|
*/
|
|
}
|