Java Programming, Loose-Leaf Version
Java Programming, Loose-Leaf Version
9th Edition
ISBN: 9781337685900
Author: FARRELL, Joyce
Publisher: Cengage Learning
bartleby

Concept explainers

bartleby

Videos

Question
Book Icon
Chapter 2, Problem 10PE
Program Plan Intro

Initials

Program Plan:

Define the class “Initials”.

  • Define the main method.
    • Declare and initialize the character variables.
    • Display the three initials with a period following each one.

Blurred answer
Students have asked these similar questions
Prompt the user to enter a string which is the name of an animal. Then print all characters of the string separated by space.  In Java
can you please write it in  java.util.scanner form Write a program that prompts the user to enter a number within the range of 1 through 10. The program should display the Roman numeral version of that number. If the number is outside the range of 1 through 10, the program should display an error message. Use if...else...if statement for this question.
a. Four integer variables have been declared and initialized: p1 = 1, p2 = 2, p3 = 3, and p4 = 4. You need to rotate the values so that the value currently in p1 moves to p2, the value currently in p2 moves to p3, etc. The value in p4 needs to move down and be saved in the p1 variable. Write a JAVA program to make this happen.
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
  • Text book image
    EBK JAVA PROGRAMMING
    Computer Science
    ISBN:9781337671385
    Author:FARRELL
    Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Constants, Variables, Data types, Keywords in C Programming Language Tutorial; Author: LearningLad;https://www.youtube.com/watch?v=d7tdL-ZEWdE;License: Standard YouTube License, CC-BY