Question
I have two programming projects that I attempted to do and came up with error messages. Can someone in the next fifteen minutes help me
I have two programming projects that I attempted to do and came up with error messages. Can someone in the next fifteen minutes help me to fix the problems. The first problem is#71130 Member.java:3: error: class Recursive is public, should be declared in a file named Recursive.java public class Recursive { ^ 1 error 1 import java.util.Scanner; 2 3 public class Recursive { The second error message I got is 71131---Write a recursive method that accepts a string as its argument and prints the string in reverse order. Demonstrate the method in a program that takes a string as input from the user and prints out its reverse. ANS:::: StringReverse.java:4: error: class StringReverseUsingRecursion is public, should be declared in a file named StringReverseUsingRecursion.java public class StringReverseUsingRecursion ^ 1 error 1 //program saved as StringReverseUsingRecursion.java 2 import java.util.*; 3 4 public class StringReverseUsingRecursion 5 { this is as far as I got. Need Help. Thanks Martha
My Subject is Principles of Programming.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started