Answer:
import java.util.Scanner;
public class num10 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter a word");
String word = in.nextLine();
String reversed = "";
//Get the length of the string entered
int length = word.length();
//Loop through the string and reverse th string
for ( int i = length - 1; i >= 0; i-- )
reversed = reversed + word.charAt(i);
//Compare the two strings "word" and "reversed"
if (word.equals(reversed))
System.out.println(word+" is a palindrome");
else
System.out.println(word+" is not a palindrome");
}
}
Explanation:
Since we know that a palindrome word is a word that reads the same forward and backward, The Idea here is:
- To obtain a word from a user.
- Use a for loop to reverse the word and store in another variable
- Use if....else to compare the two strings and determine if they are equal, if they are equal then the word is palindrome.
List the poem please. I won’t be able to answer without it.
Answer:
The answer is the Apple Macintosh
Explanation:
The Apple Macintosh PC was the first widely sold and most popular PC with a GUI. It was based on its earlier predecessor called the Apple Lisa which was later killed by the Apple Macintosh OS. Prior to the Apple Macintosh was the Xerox PARC which was the first PC to support an OS that was based on GUI. However, the Xerox was not a popular commercial product and was intended for University research only
<span>If a user name can have seven letters (with no distinction between upper and lower case), and if a letter can be repeated, then the maximum number of names is 26x26x26x26x26x26x26, or 8,031,810,176. That is, slightly more than eight billion names are possible.</span>
Answer:
change your computer date/skip the videos
Explanation:
hi there! i've been using brainly for free for some time and found that there a few ways to bypass some of their free member restrictions.
first off, there's really not an easy way to skip the video, unless you want to get technical. however, i've found that you can drag on the grey video bar on the bottom of the ad to skip to the very end, thus getting you the answer you need very quickly!
also, brainly has a 7 day answer restriction in place, which you can easily bypass by changing the date on your computer! an easy way to do that is to hit the Windows key and type "date", after which a setting will pop up that reads "Date & time settings". click on that or hit enter. then, tick off the slider that says "Set time automatically", and go down to "Set the date and time manually", after which you'll hit "Change" and change the day to a couple days in the future. give it a second, refresh the brainly tab or re-search up your answer, and you should get a lot more daily answers! one thing i must say about this method is that your computer's date will no longer be accurate. to fix this, you'll have to re-tick the slider that reads "Set time automatically", and it should fix your clock.
one more thing is that, instead of sending your parent an email, you can try to send yourself that email! unless it's an advertisement for buying brainly premium, there also should be no reason to even send the email in the first place, so try to bypass that when you can.
i hope this helps you!