SlideShare a Scribd company logo
Help with Java! Can someone check my code What I am trying to accomplish is the user inputs
their workstation number and what the issue is. Then the code will execute a screen capture. This
is what I have so far
import java.awt.*;
import java.awt.image.RenderedImage;
import java.io.File;
import java.util.Scanner;
import javax.imageio.ImageIO;
public class takeScreenCapture { public static void main() throws Exception { Scanner input =
new Scanner(System.in);
System.out.print("Hello Enter Your Issue and Workstation Number: ");
String wsNumber = input.next();
Robot robot = new Robot();
// This should save the screen capture in the appropriate path//
String path = "C:UsersPublicPicturesScreenshotsWorkstation" + wsNumber + ".jpg"; /*
Used to get ScreenSize and capture image */
Rectangle capture;
capture = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize());
BufferedImage Image = (BufferedImage) robot.createScreenCapture(capture);
ImageIO.write((RenderedImage) Image, "jpg", new File(path));
System.out.println("Screenshot saved");
}
}
Help with Java! Can someone check my code What I am trying to accompli.docx

More Related Content

Similar to Help with Java! Can someone check my code What I am trying to accompli.docx

Java ppt Gandhi Ravi (gandhiri@gmail.com)
Java ppt  Gandhi Ravi  (gandhiri@gmail.com)Java ppt  Gandhi Ravi  (gandhiri@gmail.com)
Java ppt Gandhi Ravi (gandhiri@gmail.com)
Gandhi Ravi
 
Of class1
Of class1Of class1
Of class1
Janet Huang
 
How to implement camera recording for USB webcam or IP camera in C#.NET
How to implement camera recording for USB webcam or IP camera in C#.NETHow to implement camera recording for USB webcam or IP camera in C#.NET
How to implement camera recording for USB webcam or IP camera in C#.NET
Ozeki Informatics Ltd.
 
Asynchronous Programming with JavaScript
Asynchronous Programming with JavaScriptAsynchronous Programming with JavaScript
Asynchronous Programming with JavaScript
WebF
 
06.Programming Media on Windows Phone
06.Programming Media on Windows Phone06.Programming Media on Windows Phone
06.Programming Media on Windows Phone
Nguyen Tuan
 
Building a Native Camera Access Library - Part II - Transcript.pdf
Building a Native Camera Access Library - Part II - Transcript.pdfBuilding a Native Camera Access Library - Part II - Transcript.pdf
Building a Native Camera Access Library - Part II - Transcript.pdf
ShaiAlmog1
 
React native by example by Vadim Ruban
React native by example by Vadim RubanReact native by example by Vadim Ruban
React native by example by Vadim Ruban
Lohika_Odessa_TechTalks
 
QXCameraKit
QXCameraKitQXCameraKit
QXCameraKit
Hirakawa Akira
 
Augmented reality in web rtc browser
Augmented reality in web rtc browserAugmented reality in web rtc browser
Augmented reality in web rtc browser
ALTANAI BISHT
 
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
 
All Of My Java Codes With A Sample Output.docx
All Of My Java Codes With A Sample Output.docxAll Of My Java Codes With A Sample Output.docx
All Of My Java Codes With A Sample Output.docx
adhitya5119
 
Ui perfomance
Ui perfomanceUi perfomance
Ui perfomance
Cleveroad
 
Quest 1 define a class batsman with the following specifications
Quest  1 define a class batsman with the following specificationsQuest  1 define a class batsman with the following specifications
Quest 1 define a class batsman with the following specifications
rajkumari873
 
Lab101.pptx
Lab101.pptxLab101.pptx
Lab101.pptx
KimVeeL
 
JAVA PPT -5 BY ADI.pdf
JAVA PPT -5 BY ADI.pdfJAVA PPT -5 BY ADI.pdf
JAVA PPT -5 BY ADI.pdf
Prof. Dr. K. Adisesha
 
Web Standards for AR workshop at ISMAR13
Web Standards for AR workshop at ISMAR13Web Standards for AR workshop at ISMAR13
Web Standards for AR workshop at ISMAR13
Rob Manson
 
The java Payroll that prompts user to enter hourly rate .pdf
  The java Payroll that prompts user to enter  hourly rate .pdf  The java Payroll that prompts user to enter  hourly rate .pdf
The java Payroll that prompts user to enter hourly rate .pdf
angelfashions02
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
Capture image on eye blink
Capture image on eye blinkCapture image on eye blink
Capture image on eye blink
InnovationM
 
Vue JS @ MindDoc. The progressive road to online therapy
Vue JS @ MindDoc. The progressive road to online therapyVue JS @ MindDoc. The progressive road to online therapy
Vue JS @ MindDoc. The progressive road to online therapy
Darío Blanco Iturriaga
 

Similar to Help with Java! Can someone check my code What I am trying to accompli.docx (20)

Java ppt Gandhi Ravi (gandhiri@gmail.com)
Java ppt  Gandhi Ravi  (gandhiri@gmail.com)Java ppt  Gandhi Ravi  (gandhiri@gmail.com)
Java ppt Gandhi Ravi (gandhiri@gmail.com)
 
Of class1
Of class1Of class1
Of class1
 
How to implement camera recording for USB webcam or IP camera in C#.NET
How to implement camera recording for USB webcam or IP camera in C#.NETHow to implement camera recording for USB webcam or IP camera in C#.NET
How to implement camera recording for USB webcam or IP camera in C#.NET
 
Asynchronous Programming with JavaScript
Asynchronous Programming with JavaScriptAsynchronous Programming with JavaScript
Asynchronous Programming with JavaScript
 
06.Programming Media on Windows Phone
06.Programming Media on Windows Phone06.Programming Media on Windows Phone
06.Programming Media on Windows Phone
 
Building a Native Camera Access Library - Part II - Transcript.pdf
Building a Native Camera Access Library - Part II - Transcript.pdfBuilding a Native Camera Access Library - Part II - Transcript.pdf
Building a Native Camera Access Library - Part II - Transcript.pdf
 
React native by example by Vadim Ruban
React native by example by Vadim RubanReact native by example by Vadim Ruban
React native by example by Vadim Ruban
 
QXCameraKit
QXCameraKitQXCameraKit
QXCameraKit
 
Augmented reality in web rtc browser
Augmented reality in web rtc browserAugmented reality in web rtc browser
Augmented reality in web rtc browser
 
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
 
All Of My Java Codes With A Sample Output.docx
All Of My Java Codes With A Sample Output.docxAll Of My Java Codes With A Sample Output.docx
All Of My Java Codes With A Sample Output.docx
 
Ui perfomance
Ui perfomanceUi perfomance
Ui perfomance
 
Quest 1 define a class batsman with the following specifications
Quest  1 define a class batsman with the following specificationsQuest  1 define a class batsman with the following specifications
Quest 1 define a class batsman with the following specifications
 
Lab101.pptx
Lab101.pptxLab101.pptx
Lab101.pptx
 
JAVA PPT -5 BY ADI.pdf
JAVA PPT -5 BY ADI.pdfJAVA PPT -5 BY ADI.pdf
JAVA PPT -5 BY ADI.pdf
 
Web Standards for AR workshop at ISMAR13
Web Standards for AR workshop at ISMAR13Web Standards for AR workshop at ISMAR13
Web Standards for AR workshop at ISMAR13
 
The java Payroll that prompts user to enter hourly rate .pdf
  The java Payroll that prompts user to enter  hourly rate .pdf  The java Payroll that prompts user to enter  hourly rate .pdf
The java Payroll that prompts user to enter hourly rate .pdf
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
Capture image on eye blink
Capture image on eye blinkCapture image on eye blink
Capture image on eye blink
 
Vue JS @ MindDoc. The progressive road to online therapy
Vue JS @ MindDoc. The progressive road to online therapyVue JS @ MindDoc. The progressive road to online therapy
Vue JS @ MindDoc. The progressive road to online therapy
 

More from gentomega

I am getting error on line 15 This is what I got but I'm getting an.docx
I am getting error on line 15   This is what I got but I'm getting an.docxI am getting error on line 15   This is what I got but I'm getting an.docx
I am getting error on line 15 This is what I got but I'm getting an.docx
gentomega
 
Hunter- Folgers- and Tulip have been partners while sharing net income.docx
Hunter- Folgers- and Tulip have been partners while sharing net income.docxHunter- Folgers- and Tulip have been partners while sharing net income.docx
Hunter- Folgers- and Tulip have been partners while sharing net income.docx
gentomega
 
HW-1 Let X1 and X2 be independent exponential variables with mean - an.docx
HW-1 Let X1 and X2 be independent exponential variables with mean - an.docxHW-1 Let X1 and X2 be independent exponential variables with mean - an.docx
HW-1 Let X1 and X2 be independent exponential variables with mean - an.docx
gentomega
 
Html Code and Css Code In the Project- you need to use the appropriat.docx
Html Code and Css Code  In the Project- you need to use the appropriat.docxHtml Code and Css Code  In the Project- you need to use the appropriat.docx
Html Code and Css Code In the Project- you need to use the appropriat.docx
gentomega
 
How would you summarize the public health workforce at state and local.docx
How would you summarize the public health workforce at state and local.docxHow would you summarize the public health workforce at state and local.docx
How would you summarize the public health workforce at state and local.docx
gentomega
 
How was the point of view effective to the story-What was the purpose.docx
How was the point of view effective to the story-What was the purpose.docxHow was the point of view effective to the story-What was the purpose.docx
How was the point of view effective to the story-What was the purpose.docx
gentomega
 
How many cycles are there in Figure II- Based on Figure II- identify t.docx
How many cycles are there in Figure II- Based on Figure II- identify t.docxHow many cycles are there in Figure II- Based on Figure II- identify t.docx
How many cycles are there in Figure II- Based on Figure II- identify t.docx
gentomega
 
How many bones do sharks have- What is sphenopalatine ganglioneuralgia.docx
How many bones do sharks have- What is sphenopalatine ganglioneuralgia.docxHow many bones do sharks have- What is sphenopalatine ganglioneuralgia.docx
How many bones do sharks have- What is sphenopalatine ganglioneuralgia.docx
gentomega
 
How does phosphorylation activate an enzyme- Please choose the correct.docx
How does phosphorylation activate an enzyme- Please choose the correct.docxHow does phosphorylation activate an enzyme- Please choose the correct.docx
How does phosphorylation activate an enzyme- Please choose the correct.docx
gentomega
 
How does cultural diversity impact the behavior of international busin.docx
How does cultural diversity impact the behavior of international busin.docxHow does cultural diversity impact the behavior of international busin.docx
How does cultural diversity impact the behavior of international busin.docx
gentomega
 
How do the factors influencing the middle income housing market that a.docx
How do the factors influencing the middle income housing market that a.docxHow do the factors influencing the middle income housing market that a.docx
How do the factors influencing the middle income housing market that a.docx
gentomega
 
How can we use social media channels to drive brand success- a)Explain.docx
How can we use social media channels to drive brand success- a)Explain.docxHow can we use social media channels to drive brand success- a)Explain.docx
How can we use social media channels to drive brand success- a)Explain.docx
gentomega
 
HIV infection passes through a series of steps or stages before it tur.docx
HIV infection passes through a series of steps or stages before it tur.docxHIV infection passes through a series of steps or stages before it tur.docx
HIV infection passes through a series of steps or stages before it tur.docx
gentomega
 
Hi there please help me to find the correct account for Total deductio.docx
Hi there please help me to find the correct account for Total deductio.docxHi there please help me to find the correct account for Total deductio.docx
Hi there please help me to find the correct account for Total deductio.docx
gentomega
 
Here is a frequency distribution table for a small data set- Find the.docx
Here is a frequency distribution table for a small data set- Find the.docxHere is a frequency distribution table for a small data set- Find the.docx
Here is a frequency distribution table for a small data set- Find the.docx
gentomega
 
helpp Middle America - Geography Match the Region with the Correct Des.docx
helpp Middle America - Geography Match the Region with the Correct Des.docxhelpp Middle America - Geography Match the Region with the Correct Des.docx
helpp Middle America - Geography Match the Region with the Correct Des.docx
gentomega
 
HELPPP 4- Examine the figure above and answer the following- Specifica.docx
HELPPP 4- Examine the figure above and answer the following- Specifica.docxHELPPP 4- Examine the figure above and answer the following- Specifica.docx
HELPPP 4- Examine the figure above and answer the following- Specifica.docx
gentomega
 
help me to answer for assignment- my course name is advanced diploma.docx
help me to  answer for assignment- my course name is advanced diploma.docxhelp me to  answer for assignment- my course name is advanced diploma.docx
help me to answer for assignment- my course name is advanced diploma.docx
gentomega
 
help me answer the questions please Health Care Associated Disease Tr.docx
help me answer the questions please  Health Care Associated Disease Tr.docxhelp me answer the questions please  Health Care Associated Disease Tr.docx
help me answer the questions please Health Care Associated Disease Tr.docx
gentomega
 
Hello- Below is my E-R Diagram- I need to change two items- 1- Based o.docx
Hello- Below is my E-R Diagram- I need to change two items- 1- Based o.docxHello- Below is my E-R Diagram- I need to change two items- 1- Based o.docx
Hello- Below is my E-R Diagram- I need to change two items- 1- Based o.docx
gentomega
 

More from gentomega (20)

I am getting error on line 15 This is what I got but I'm getting an.docx
I am getting error on line 15   This is what I got but I'm getting an.docxI am getting error on line 15   This is what I got but I'm getting an.docx
I am getting error on line 15 This is what I got but I'm getting an.docx
 
Hunter- Folgers- and Tulip have been partners while sharing net income.docx
Hunter- Folgers- and Tulip have been partners while sharing net income.docxHunter- Folgers- and Tulip have been partners while sharing net income.docx
Hunter- Folgers- and Tulip have been partners while sharing net income.docx
 
HW-1 Let X1 and X2 be independent exponential variables with mean - an.docx
HW-1 Let X1 and X2 be independent exponential variables with mean - an.docxHW-1 Let X1 and X2 be independent exponential variables with mean - an.docx
HW-1 Let X1 and X2 be independent exponential variables with mean - an.docx
 
Html Code and Css Code In the Project- you need to use the appropriat.docx
Html Code and Css Code  In the Project- you need to use the appropriat.docxHtml Code and Css Code  In the Project- you need to use the appropriat.docx
Html Code and Css Code In the Project- you need to use the appropriat.docx
 
How would you summarize the public health workforce at state and local.docx
How would you summarize the public health workforce at state and local.docxHow would you summarize the public health workforce at state and local.docx
How would you summarize the public health workforce at state and local.docx
 
How was the point of view effective to the story-What was the purpose.docx
How was the point of view effective to the story-What was the purpose.docxHow was the point of view effective to the story-What was the purpose.docx
How was the point of view effective to the story-What was the purpose.docx
 
How many cycles are there in Figure II- Based on Figure II- identify t.docx
How many cycles are there in Figure II- Based on Figure II- identify t.docxHow many cycles are there in Figure II- Based on Figure II- identify t.docx
How many cycles are there in Figure II- Based on Figure II- identify t.docx
 
How many bones do sharks have- What is sphenopalatine ganglioneuralgia.docx
How many bones do sharks have- What is sphenopalatine ganglioneuralgia.docxHow many bones do sharks have- What is sphenopalatine ganglioneuralgia.docx
How many bones do sharks have- What is sphenopalatine ganglioneuralgia.docx
 
How does phosphorylation activate an enzyme- Please choose the correct.docx
How does phosphorylation activate an enzyme- Please choose the correct.docxHow does phosphorylation activate an enzyme- Please choose the correct.docx
How does phosphorylation activate an enzyme- Please choose the correct.docx
 
How does cultural diversity impact the behavior of international busin.docx
How does cultural diversity impact the behavior of international busin.docxHow does cultural diversity impact the behavior of international busin.docx
How does cultural diversity impact the behavior of international busin.docx
 
How do the factors influencing the middle income housing market that a.docx
How do the factors influencing the middle income housing market that a.docxHow do the factors influencing the middle income housing market that a.docx
How do the factors influencing the middle income housing market that a.docx
 
How can we use social media channels to drive brand success- a)Explain.docx
How can we use social media channels to drive brand success- a)Explain.docxHow can we use social media channels to drive brand success- a)Explain.docx
How can we use social media channels to drive brand success- a)Explain.docx
 
HIV infection passes through a series of steps or stages before it tur.docx
HIV infection passes through a series of steps or stages before it tur.docxHIV infection passes through a series of steps or stages before it tur.docx
HIV infection passes through a series of steps or stages before it tur.docx
 
Hi there please help me to find the correct account for Total deductio.docx
Hi there please help me to find the correct account for Total deductio.docxHi there please help me to find the correct account for Total deductio.docx
Hi there please help me to find the correct account for Total deductio.docx
 
Here is a frequency distribution table for a small data set- Find the.docx
Here is a frequency distribution table for a small data set- Find the.docxHere is a frequency distribution table for a small data set- Find the.docx
Here is a frequency distribution table for a small data set- Find the.docx
 
helpp Middle America - Geography Match the Region with the Correct Des.docx
helpp Middle America - Geography Match the Region with the Correct Des.docxhelpp Middle America - Geography Match the Region with the Correct Des.docx
helpp Middle America - Geography Match the Region with the Correct Des.docx
 
HELPPP 4- Examine the figure above and answer the following- Specifica.docx
HELPPP 4- Examine the figure above and answer the following- Specifica.docxHELPPP 4- Examine the figure above and answer the following- Specifica.docx
HELPPP 4- Examine the figure above and answer the following- Specifica.docx
 
help me to answer for assignment- my course name is advanced diploma.docx
help me to  answer for assignment- my course name is advanced diploma.docxhelp me to  answer for assignment- my course name is advanced diploma.docx
help me to answer for assignment- my course name is advanced diploma.docx
 
help me answer the questions please Health Care Associated Disease Tr.docx
help me answer the questions please  Health Care Associated Disease Tr.docxhelp me answer the questions please  Health Care Associated Disease Tr.docx
help me answer the questions please Health Care Associated Disease Tr.docx
 
Hello- Below is my E-R Diagram- I need to change two items- 1- Based o.docx
Hello- Below is my E-R Diagram- I need to change two items- 1- Based o.docxHello- Below is my E-R Diagram- I need to change two items- 1- Based o.docx
Hello- Below is my E-R Diagram- I need to change two items- 1- Based o.docx
 

Recently uploaded

Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
PsychoTech Services
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Leena Ghag-Sakpal
 
ZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptxZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptx
dot55audits
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
spdendr
 

Recently uploaded (20)

Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
 
ZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptxZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptx
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
 

Help with Java! Can someone check my code What I am trying to accompli.docx

  • 1. Help with Java! Can someone check my code What I am trying to accomplish is the user inputs their workstation number and what the issue is. Then the code will execute a screen capture. This is what I have so far import java.awt.*; import java.awt.image.RenderedImage; import java.io.File; import java.util.Scanner; import javax.imageio.ImageIO; public class takeScreenCapture { public static void main() throws Exception { Scanner input = new Scanner(System.in); System.out.print("Hello Enter Your Issue and Workstation Number: "); String wsNumber = input.next(); Robot robot = new Robot(); // This should save the screen capture in the appropriate path// String path = "C:UsersPublicPicturesScreenshotsWorkstation" + wsNumber + ".jpg"; /* Used to get ScreenSize and capture image */ Rectangle capture; capture = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()); BufferedImage Image = (BufferedImage) robot.createScreenCapture(capture); ImageIO.write((RenderedImage) Image, "jpg", new File(path)); System.out.println("Screenshot saved"); } }