SlideShare a Scribd company logo
1 of 1
Download to read offline
How do I fix this intellij java program: import java.util.Scanner; public class Practice { // Global
Variables Scanner input = new Scanner(System.in); //Enables User Input // This is the entry
point to the program method main public static void main(String[] args) { // Local Variables for
main method char cSymbol = "$" int nNum1=18; int nNum2=21; question01(); question02();
question03(); question04(nNum1, nNum2); } public static void question01(String output);
System.out.println("Please enter 'HelloWorld!'"); String userInput = scanner.nextLine();{
System.out.println("You entered: "+output); } public static void question02() { for(int i = 1; i <=
30; i++) { if(i % 3 == 0) { System.out.print(i + " "); } } System.out.println(); } public static void
main(String[] args) { question02(); } } public static void question03(char cSymbol, String
sOriginal, float fScore) { float recieved = fScore*2; String recieved = "Update"; char recieved
='%'; } public static int question04(int a, int b) { if (a > b) { return a; } else { return b; } } } }

More Related Content

Similar to How do I fix this intellij java program- import java-util-Scanner- pu.pdf

KOLEJ KOMUNITI - Sijil Aplikasi Perisian Komputer
KOLEJ KOMUNITI - Sijil Aplikasi Perisian KomputerKOLEJ KOMUNITI - Sijil Aplikasi Perisian Komputer
KOLEJ KOMUNITI - Sijil Aplikasi Perisian Komputer
Aiman Hud
 
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_17-Feb-2021_L8-...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_17-Feb-2021_L8-...WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_17-Feb-2021_L8-...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_17-Feb-2021_L8-...
MaruMengesha
 
The code you written is little bit confusing and lengthy. Here is th.pdf
The code you written is little bit confusing and lengthy. Here is th.pdfThe code you written is little bit confusing and lengthy. Here is th.pdf
The code you written is little bit confusing and lengthy. Here is th.pdf
mohammadirfan136964
 
Write a Java ProgramSolutionAnswer- Code- import java-io--- import jav.docx
Write a Java ProgramSolutionAnswer- Code- import java-io--- import jav.docxWrite a Java ProgramSolutionAnswer- Code- import java-io--- import jav.docx
Write a Java ProgramSolutionAnswer- Code- import java-io--- import jav.docx
lez31palka
 

Similar to How do I fix this intellij java program- import java-util-Scanner- pu.pdf (20)

Lab101.pptx
Lab101.pptxLab101.pptx
Lab101.pptx
 
Estructura secuencial -garcia
Estructura secuencial -garciaEstructura secuencial -garcia
Estructura secuencial -garcia
 
Problemas secuenciales.
Problemas secuenciales.Problemas secuenciales.
Problemas secuenciales.
 
Problemas secuenciales.
Problemas secuenciales.Problemas secuenciales.
Problemas secuenciales.
 
Problemas secuenciales.
Problemas secuenciales.Problemas secuenciales.
Problemas secuenciales.
 
Problemas secuenciales.
Problemas secuenciales.Problemas secuenciales.
Problemas secuenciales.
 
Problemas secuenciales.
Problemas secuenciales.Problemas secuenciales.
Problemas secuenciales.
 
KOLEJ KOMUNITI - Sijil Aplikasi Perisian Komputer
KOLEJ KOMUNITI - Sijil Aplikasi Perisian KomputerKOLEJ KOMUNITI - Sijil Aplikasi Perisian Komputer
KOLEJ KOMUNITI - Sijil Aplikasi Perisian Komputer
 
java input & output statements
 java input & output statements java input & output statements
java input & output statements
 
Java programs
Java programsJava programs
Java programs
 
Import java
Import javaImport java
Import java
 
Review Questions for Exam 10182016 1. public class .pdf
Review Questions for Exam 10182016 1. public class .pdfReview Questions for Exam 10182016 1. public class .pdf
Review Questions for Exam 10182016 1. public class .pdf
 
Algoritmos sujei
Algoritmos sujeiAlgoritmos sujei
Algoritmos sujei
 
Java file
Java fileJava file
Java file
 
Java file
Java fileJava file
Java file
 
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_17-Feb-2021_L8-...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_17-Feb-2021_L8-...WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_17-Feb-2021_L8-...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_17-Feb-2021_L8-...
 
The code you written is little bit confusing and lengthy. Here is th.pdf
The code you written is little bit confusing and lengthy. Here is th.pdfThe code you written is little bit confusing and lengthy. Here is th.pdf
The code you written is little bit confusing and lengthy. Here is th.pdf
 
Write a Java ProgramSolutionAnswer- Code- import java-io--- import jav.docx
Write a Java ProgramSolutionAnswer- Code- import java-io--- import jav.docxWrite a Java ProgramSolutionAnswer- Code- import java-io--- import jav.docx
Write a Java ProgramSolutionAnswer- Code- import java-io--- import jav.docx
 
Java Programs
Java ProgramsJava Programs
Java Programs
 
Presentation1 computer shaan
Presentation1 computer shaanPresentation1 computer shaan
Presentation1 computer shaan
 

More from krishnac481

How does the fluid mosaic model represents the structure of the plasma.pdf
How does the fluid mosaic model represents the structure of the plasma.pdfHow does the fluid mosaic model represents the structure of the plasma.pdf
How does the fluid mosaic model represents the structure of the plasma.pdf
krishnac481
 

More from krishnac481 (20)

How does excitation pass from cell 1 to cell 2- By acetylcholine By pa.pdf
How does excitation pass from cell 1 to cell 2- By acetylcholine By pa.pdfHow does excitation pass from cell 1 to cell 2- By acetylcholine By pa.pdf
How does excitation pass from cell 1 to cell 2- By acetylcholine By pa.pdf
 
How I can change the output size in insert import tkinter as tk imp.pdf
How I can change the output size in insert    import tkinter as tk imp.pdfHow I can change the output size in insert    import tkinter as tk imp.pdf
How I can change the output size in insert import tkinter as tk imp.pdf
 
How does PowerBI relate to digital transformation- (Minimum 200 words).pdf
How does PowerBI relate to digital transformation- (Minimum 200 words).pdfHow does PowerBI relate to digital transformation- (Minimum 200 words).pdf
How does PowerBI relate to digital transformation- (Minimum 200 words).pdf
 
How does Any Rand view the American idea of -making money-- A- Nega.pdf
How does Any Rand view the American idea of -making money-- A-    Nega.pdfHow does Any Rand view the American idea of -making money-- A-    Nega.pdf
How does Any Rand view the American idea of -making money-- A- Nega.pdf
 
How has social media impacted consumer behavior pre and post covid19-.pdf
How has social media impacted consumer behavior pre and post covid19-.pdfHow has social media impacted consumer behavior pre and post covid19-.pdf
How has social media impacted consumer behavior pre and post covid19-.pdf
 
How is Peru being impacted by Climate Change- Compare and contrast the.pdf
How is Peru being impacted by Climate Change- Compare and contrast the.pdfHow is Peru being impacted by Climate Change- Compare and contrast the.pdf
How is Peru being impacted by Climate Change- Compare and contrast the.pdf
 
How is each group classified- Parasitic worms Fungi Protozoa What is t.pdf
How is each group classified- Parasitic worms Fungi Protozoa What is t.pdfHow is each group classified- Parasitic worms Fungi Protozoa What is t.pdf
How is each group classified- Parasitic worms Fungi Protozoa What is t.pdf
 
How do I print the lists vertically- sizes -- -Small-- -Medium-- -Larg.pdf
How do I print the lists vertically- sizes -- -Small-- -Medium-- -Larg.pdfHow do I print the lists vertically- sizes -- -Small-- -Medium-- -Larg.pdf
How do I print the lists vertically- sizes -- -Small-- -Medium-- -Larg.pdf
 
How is long-run economic growth measured- What is the basis of long-ru.pdf
How is long-run economic growth measured- What is the basis of long-ru.pdfHow is long-run economic growth measured- What is the basis of long-ru.pdf
How is long-run economic growth measured- What is the basis of long-ru.pdf
 
How do I calculate the following for relative error by hand- I'm aware.pdf
How do I calculate the following for relative error by hand- I'm aware.pdfHow do I calculate the following for relative error by hand- I'm aware.pdf
How do I calculate the following for relative error by hand- I'm aware.pdf
 
How is global human resource management different from domestic HRM- Q.pdf
How is global human resource management different from domestic HRM- Q.pdfHow is global human resource management different from domestic HRM- Q.pdf
How is global human resource management different from domestic HRM- Q.pdf
 
How has Europe benefited from its location and its major physical feat.pdf
How has Europe benefited from its location and its major physical feat.pdfHow has Europe benefited from its location and its major physical feat.pdf
How has Europe benefited from its location and its major physical feat.pdf
 
How each of this happens and their clinical correlates-a- Inversion du.pdf
How each of this happens and their clinical correlates-a- Inversion du.pdfHow each of this happens and their clinical correlates-a- Inversion du.pdf
How each of this happens and their clinical correlates-a- Inversion du.pdf
 
How is the beginning of intramembranous ossification different from en.pdf
How is the beginning of intramembranous ossification different from en.pdfHow is the beginning of intramembranous ossification different from en.pdf
How is the beginning of intramembranous ossification different from en.pdf
 
How do the architecture and design of these systems reflect the functi.pdf
How do the architecture and design of these systems reflect the functi.pdfHow do the architecture and design of these systems reflect the functi.pdf
How do the architecture and design of these systems reflect the functi.pdf
 
How does the fluid mosaic model represents the structure of the plasma.pdf
How does the fluid mosaic model represents the structure of the plasma.pdfHow does the fluid mosaic model represents the structure of the plasma.pdf
How does the fluid mosaic model represents the structure of the plasma.pdf
 
How do you differentiate a crypto exchange from a traditional stock ex.pdf
How do you differentiate a crypto exchange from a traditional stock ex.pdfHow do you differentiate a crypto exchange from a traditional stock ex.pdf
How do you differentiate a crypto exchange from a traditional stock ex.pdf
 
How does the heterozygous condition for sickle cell disease confer an.pdf
How does the heterozygous condition for sickle cell disease confer an.pdfHow does the heterozygous condition for sickle cell disease confer an.pdf
How does the heterozygous condition for sickle cell disease confer an.pdf
 
How does Celebrity Cruises collect data about the customer experience-.pdf
How does Celebrity Cruises collect data about the customer experience-.pdfHow does Celebrity Cruises collect data about the customer experience-.pdf
How does Celebrity Cruises collect data about the customer experience-.pdf
 
How do retail stores display their merchandise taking into account sub.pdf
How do retail stores display their merchandise taking into account sub.pdfHow do retail stores display their merchandise taking into account sub.pdf
How do retail stores display their merchandise taking into account sub.pdf
 

Recently uploaded

會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 

Recently uploaded (20)

Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
“O BEIJO” EM ARTE .
“O BEIJO” EM ARTE                       .“O BEIJO” EM ARTE                       .
“O BEIJO” EM ARTE .
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
demyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxdemyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptx
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 

How do I fix this intellij java program- import java-util-Scanner- pu.pdf

  • 1. How do I fix this intellij java program: import java.util.Scanner; public class Practice { // Global Variables Scanner input = new Scanner(System.in); //Enables User Input // This is the entry point to the program method main public static void main(String[] args) { // Local Variables for main method char cSymbol = "$" int nNum1=18; int nNum2=21; question01(); question02(); question03(); question04(nNum1, nNum2); } public static void question01(String output); System.out.println("Please enter 'HelloWorld!'"); String userInput = scanner.nextLine();{ System.out.println("You entered: "+output); } public static void question02() { for(int i = 1; i <= 30; i++) { if(i % 3 == 0) { System.out.print(i + " "); } } System.out.println(); } public static void main(String[] args) { question02(); } } public static void question03(char cSymbol, String sOriginal, float fScore) { float recieved = fScore*2; String recieved = "Update"; char recieved ='%'; } public static int question04(int a, int b) { if (a > b) { return a; } else { return b; } } } }