
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
Gery lines can not be edited as seen on photo.
New JAVA code can only be added to they 14 - 16 or lines inbetween.

Transcribed Image Text:Write code that uses the input string stream inSS to read input data from string userInput, and updates variables userMonth,
userDate, and userYear. Sample output if the input is "Jan 12 1992":
Month: Jan
Date: 12
Year: 1992
Learn how our autograder works
485098.3500408.qx3zqy7
56700 o
8
9
10
11
12
13
14
15
16
17
6700 o
TENN
18
19
20 }
21 }
Scanner scnr = new Scanner (System.in);
Scanner inSS= null;
String userInput;
String userMonth;
int userDate;
int userYear;
userInput = scnr .nextLine();
inSS new Scanner(user Input);
/* Your solution goes here */
System.out.println("Month:
System.out.println("Date:
System.out.println("Year:
+ userMonth);
+ userDate);
+ userYear);
![Write code that uses the input string stream inSS to read input data from string userInput, and updates variables userMonth,
userDate, and user Year. Sample output if the input is "Jan 12 1992":
Month: Jan
Date: 12
Year: 1992
Learn how our autograder works
485098.3500408.qx3zqy7
1 import java.util.Scanner;
2
3 public class StringInputStream {
4
5
6
7
8
9
10
11
12
13
14
15
16
17
public static void main (String [] args) {
Scanner scnr = new Scanner (System.in);
Scanner inSS = null;
String userInput;
String userMonth;
int userDate;
int userYear;
user Input
scnr.nextLine();
inSS new Scanner (user Input);
/* Your solution goes here */
System.out.println("Month:
=
"
+ userMonth);](https://content.bartleby.com/qna-images/question/0cc153ae-b205-4fb2-9991-7cf6a21d5016/eaa3bf88-aeda-4056-8298-412a15f41a02/ofsnbc_thumbnail.png)
Transcribed Image Text:Write code that uses the input string stream inSS to read input data from string userInput, and updates variables userMonth,
userDate, and user Year. Sample output if the input is "Jan 12 1992":
Month: Jan
Date: 12
Year: 1992
Learn how our autograder works
485098.3500408.qx3zqy7
1 import java.util.Scanner;
2
3 public class StringInputStream {
4
5
6
7
8
9
10
11
12
13
14
15
16
17
public static void main (String [] args) {
Scanner scnr = new Scanner (System.in);
Scanner inSS = null;
String userInput;
String userMonth;
int userDate;
int userYear;
user Input
scnr.nextLine();
inSS new Scanner (user Input);
/* Your solution goes here */
System.out.println("Month:
=
"
+ userMonth);
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps with 1 images

Knowledge Booster
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
- Write a code using C# for the following images.arrow_forwardIn Java import java.util.Scanner;public class Image {int numberOfPhotos; // photos on rolldouble fStop; // light let it 1.4,2.0,2.8 ... 16.0int iso; // sensativity to light 100,200, 600int filterNumber; // 1-6String subjectMatter;String color; // black and white or colorString location;boolean isblurry;public String looksBlurry(boolean key){if ( key == true){return "Photo is Blurry";}else{return "Photo is Clear";}}public void printPhotoDetails (String s1){Scanner br= new Scanner(System.in);String subjectMatter=s1;System.out.println("Data of Nature photos:");System.out.println("Enter number of photos:");numberOfPhotos= br.nextInt();int i=1;while(true){System.out.println("Enter Filter number of photos"+i+":");filterNumber= br.nextInt();System.out.println("Enter colour of photo"+i+ ":");String color= br.next();System.out.println("Enter focal length of photo"+i+":");fStop= br.nextInt();System.out.println("Enter location of photo"+i+":");String location= br.next();System.out.println("Enter…arrow_forwardJAVA SWINGI have definied a straight TUBE as: int rectWidth = 25; // replace 50 with the desired width of the rectangleint rectHeight = 200; // replace 200 with the desired height of the rectangleint rectX = (this.getWidth() - rectWidth) / 2;int rectY = (this.getHeight() - rectHeight) / 2;game.fillRect(rectX, rectY, rectWidth, rectHeight);I need L tube, which connects the straight tubes. How to define L tubes?arrow_forward
- Python code and output screenshot is mustarrow_forwardConnectedCircles.java, allows the userto create circles and determine whether they are connected. Rewrite the programfor rectangles. The program lets the user create a rectangle by clicking amouse in a blank area that is not currently covered by a rectangle. As the rectanglesare added, the rectangles are repainted as filled if they are connected orare unfilled otherwise, as shown in Figure b–c.arrow_forwardImplement a date picker in javafx having following properties1) only numerical value can be typed in it2) / ( forward slash) appears in it when form prompt and user can write date in it3)only 8 digits can be typed in itarrow_forward
- Java Given main(), complete the SongNode class to include the printSongInfo() method. Then write the Playlist class' printPlaylist() method to print all songs in the playlist. DO NOT print the dummy head node.arrow_forwardGrey lines of code can NOT be edited. NEW JAVA code inbetween lines 11 - 14 in photo. TIP:arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education