Modify the CharacterInfo class shown in Figure 7-3 so that the tested character is retrieved from user
Question:
Transcribed Image Text:
public class CharacterInfo { public static void main(String[] args) char aChar = 'C'; System.out.println("The character is " + aChar); if(Character.isUpperCase(aChar)) System.out.println(aChar + " is uppercase"); else is not uppercase"); System.out.println(aChar + if(Character.islowerCase (aChar)) System.out.println(aChar + " is lowercase"); else System.out.println(aChar + " is not lowercase"); aChar = Character.tolowerCase(aChar); System.out.println("After tolowerCase (), aChar is aChar = Character.toUpperCase (aChar); System.out.println("After toUpperCase (), aChar is + aChar); + aChar); %3D if(Character.isletterOrDigit(aChar)) System.out.println(aChar + " is a letter or digit"); else System.out.println(aChar + " is neither a letter nor a di git"); if(Character.i swhi tespace (aChar)) System.out.println(aChar + " is whitespace"); else System.out.println(aChar + " 1s not whitespace");
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 57% (7 reviews)
import javautilScanner public class InputCharacterInfo public static void mainString args char aChar ...View the full answer
Answered By
Muhammad Umair
I have done job as Embedded System Engineer for just four months but after it i have decided to open my own lab and to work on projects that i can launch my own product in market. I work on different softwares like Proteus, Mikroc to program Embedded Systems. My basic work is on Embedded Systems. I have skills in Autocad, Proteus, C++, C programming and i love to share these skills to other to enhance my knowledge too.
3.50+
1+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
1. Explain the advantages of locating the PRIDE database in the clouded. Flores and his partners could place it on one of their own servers in the practice. Give reasons why it would be unwise for...
-
1. The log shown in Figure 7-19 includes four transactions that completed successfully. For each of the four transactions, list the transaction ID and the table(s) modified. Also, list whether the...
-
Consider the client buffer shown in Figure 7.3. Suppose that the streaming system uses the third option; that is, the server pllshes the media into the socket as quickly as possible. Suppose the...
-
Read the Comp & Ben Case Study and answer the following question: To the degree job growth (and increased car sales that come from m costs) is based on two tier-wage structures, how sustainable...
-
Elizabeth made the following interest-free loans during the year. Assume that tax avoidance is not a principal purpose of any of the loans. Assume that the relevant Federal rate is 5% and that the...
-
Suppose you are going to have a prescription filled at a local pharmacy. Referring to the dimensions of service quality for each dimension, give an example of how you would judge the quality of the...
-
Journalize the following transactions of Cramer, Inc., which ends its accounting year on June 30: Apr 1 Jun 6 30 Loaned $20,000 cash to R. Simpson on a one-year, 8% note. Sold goods to Friday, Corp.,...
-
Alice Johnson, Social Security number 222-23-3334, is single taxpayer and is employed as a secretary by State University of Florida. She has the following items pertaining to her income tax return...
-
1] As the world population ages, will the demand for cholesterol drugs increase, decrease, or remain the same? 2] Would this cause a change in demand or a change in quantity demanded? 3] Please also...
-
Meadows Enterprises Ltd. is a Canadian corporation located in Regina. The company operates a retail business that has shown consistent profits for several years. Cash generated from those profits has...
-
Unlike when you create a String, when you create a StringBuilder, you must use the keyword ____________. a. buffer b. new c. null d. class
-
Write an application that prompts the user for three first names and concatenates them in every possible two-name combination so that new parents can easily compare them to find the most pleasing...
-
What structure do all steroids have in common?
-
Consider the functions f(x) = x - 2x + 2 and g(x) = -2x + 6. a. Find (f.g)(x) b. Find the domain of (f.g)(x). Write your answer in interval notation
-
Try to Imagine that you are employed as a policy officer and asked to make a briefing for new staff in an organization dealing with social policy issues. Write a briefing on one of the following....
-
Explain how you can apply the knowledge learned in this course towards effective communication within your field of study. Explain areas of strengths in communication you feel you will bring to your...
-
Make a table of solutions for the equation x - 6y = 8. Fill in the entire table before submitting your answer. Values of x and y satisfying the equation x - 6y = 8 X y
-
Three arguments used to promote trade barriers are the national security argument, the infant-industry argument, and the dumping argument. Explain each of these arguments and evaluate whether each...
-
Reconsider Prob. 1535. Using an appropriate software, investigate the effect of car speed on the required power to overcome (a) Rolling resistance, (b) The aerodynamic drag, (c) Their combined...
-
The Heese Restaurant Group manufactures the bags of frozen French fries used at its franchised restaurants. Last week, Heeses purchased and used 101,000 pounds of potatoes at a price of $ 0.70 per...
-
When you do not know how many items need to be sorted in a program, you can create an array that has _____. a. Variable-sized elements b. At least as many elements as the number you predict you will...
-
In a bubble sort, on each pass through the list that must be sorted, you can stop making pair comparisons _____. a. One comparison sooner b. Two comparisons sooner c. One comparison later d. Two...
-
When performing a bubble sort on a list of 10 values, you can stop making passes through the list of values as soon as _____ on a single pass through the list. a. No swaps are made b. Exactly one...
-
Terminal Industries (TI) produces a product using three departments: Mixing, Processing, and Filtering. New material is added only in the Mixing Department. The following information is given for the...
-
Following are the issuances of stock transactions. 1. A corporation issued 8,000 shares of $30 par value common stock for $288,000 cash. 2. A corporation issued 4,000 shares of no-par common stock to...
-
On June 30, 2020, the market interest rate is 4.5% Family Enterprises issues $515,000 of 5.5%, 18-year bonds at 113 944 The bonds pay interest on June 30 and December 31. Family amortizes bonds by...
Study smarter with the SolutionInn App