SlideShare a Scribd company logo
1 of 1
Download to read offline
I am trying to add the units to my println in Java, what I have so far is
System.out.println("The projectile velocity is " +decf.format(Vel));
When I give its input, its giving out
But in reality its supposed to have units such as
How do I add the units?
Solution
System.out.println("The projectile velocity is " +decf.format(Vel) + "feet per second");
The above command will have the unit also with the answer

More Related Content

More from rishabjain5053

The universe began 13 7 billion years ago, is most directly an exa.pdf
The universe began 13 7 billion years ago,  is most directly an exa.pdfThe universe began 13 7 billion years ago,  is most directly an exa.pdf
The universe began 13 7 billion years ago, is most directly an exa.pdfrishabjain5053
 
The Stevens Company provided $57000 of services on acco.pdf
The Stevens Company provided $57000 of services on acco.pdfThe Stevens Company provided $57000 of services on acco.pdf
The Stevens Company provided $57000 of services on acco.pdfrishabjain5053
 
The papillae on the tongue that do not contain any taste buds are the.pdf
The papillae on the tongue that do not contain any taste buds are the.pdfThe papillae on the tongue that do not contain any taste buds are the.pdf
The papillae on the tongue that do not contain any taste buds are the.pdfrishabjain5053
 
QUESTION 13 Which of the following benefits is a component of Social .pdf
QUESTION 13 Which of the following benefits is a component of Social .pdfQUESTION 13 Which of the following benefits is a component of Social .pdf
QUESTION 13 Which of the following benefits is a component of Social .pdfrishabjain5053
 
Padre, Inc., buys 80 percent of the outstanding common stock of Sier.pdf
Padre, Inc., buys 80 percent of the outstanding common stock of Sier.pdfPadre, Inc., buys 80 percent of the outstanding common stock of Sier.pdf
Padre, Inc., buys 80 percent of the outstanding common stock of Sier.pdfrishabjain5053
 
Operating Systems Structure1- Explain briefly why the objectives o.pdf
Operating Systems Structure1- Explain briefly why the objectives o.pdfOperating Systems Structure1- Explain briefly why the objectives o.pdf
Operating Systems Structure1- Explain briefly why the objectives o.pdfrishabjain5053
 
Need help with this java code. fill in lines where needed. Also, not.pdf
Need help with this java code. fill in lines where needed. Also, not.pdfNeed help with this java code. fill in lines where needed. Also, not.pdf
Need help with this java code. fill in lines where needed. Also, not.pdfrishabjain5053
 
IP has no mechanism for error reporting or error-correcting. ICMPv4 .pdf
IP has no mechanism for error reporting or error-correcting. ICMPv4 .pdfIP has no mechanism for error reporting or error-correcting. ICMPv4 .pdf
IP has no mechanism for error reporting or error-correcting. ICMPv4 .pdfrishabjain5053
 
Informed Consent is a significant requirement for all provider types.pdf
Informed Consent is a significant requirement for all provider types.pdfInformed Consent is a significant requirement for all provider types.pdf
Informed Consent is a significant requirement for all provider types.pdfrishabjain5053
 
In the MVC Architecture, why is it important to keep the model, view.pdf
In the MVC Architecture, why is it important to keep the model, view.pdfIn the MVC Architecture, why is it important to keep the model, view.pdf
In the MVC Architecture, why is it important to keep the model, view.pdfrishabjain5053
 
in roughly 400 words please describe3 affective outcomes of diver.pdf
in roughly 400 words please describe3 affective outcomes of diver.pdfin roughly 400 words please describe3 affective outcomes of diver.pdf
in roughly 400 words please describe3 affective outcomes of diver.pdfrishabjain5053
 
Im having issues with two homework questions. I get the gist of th.pdf
Im having issues with two homework questions. I get the gist of th.pdfIm having issues with two homework questions. I get the gist of th.pdf
Im having issues with two homework questions. I get the gist of th.pdfrishabjain5053
 
Implement the interface you wrote for Lab B (EntryWayListInterface)..pdf
Implement the interface you wrote for Lab B (EntryWayListInterface)..pdfImplement the interface you wrote for Lab B (EntryWayListInterface)..pdf
Implement the interface you wrote for Lab B (EntryWayListInterface)..pdfrishabjain5053
 
How does an understanding of management and organizational behavior .pdf
How does an understanding of management and organizational behavior .pdfHow does an understanding of management and organizational behavior .pdf
How does an understanding of management and organizational behavior .pdfrishabjain5053
 
Hey, I need some help coding this C++ assignment.ObjectivesThis.pdf
Hey, I need some help coding this C++ assignment.ObjectivesThis.pdfHey, I need some help coding this C++ assignment.ObjectivesThis.pdf
Hey, I need some help coding this C++ assignment.ObjectivesThis.pdfrishabjain5053
 
Explain the rise of social movement unionism (250 word counts).pdf
Explain the rise of social movement unionism  (250 word counts).pdfExplain the rise of social movement unionism  (250 word counts).pdf
Explain the rise of social movement unionism (250 word counts).pdfrishabjain5053
 
Explain in detail the Next Generation Networks (NGN). Draw its archi.pdf
Explain in detail the Next Generation Networks (NGN). Draw its archi.pdfExplain in detail the Next Generation Networks (NGN). Draw its archi.pdf
Explain in detail the Next Generation Networks (NGN). Draw its archi.pdfrishabjain5053
 
Discussshare examples of poorly writteninappropriate email message.pdf
Discussshare examples of poorly writteninappropriate email message.pdfDiscussshare examples of poorly writteninappropriate email message.pdf
Discussshare examples of poorly writteninappropriate email message.pdfrishabjain5053
 
Description (Part A) In this lab you will write a Queue implementati.pdf
Description (Part A) In this lab you will write a Queue implementati.pdfDescription (Part A) In this lab you will write a Queue implementati.pdf
Description (Part A) In this lab you will write a Queue implementati.pdfrishabjain5053
 
Definition Unital ring Definition Unital ring Solution.pdf
Definition Unital ring  Definition Unital ring Solution.pdfDefinition Unital ring  Definition Unital ring Solution.pdf
Definition Unital ring Definition Unital ring Solution.pdfrishabjain5053
 

More from rishabjain5053 (20)

The universe began 13 7 billion years ago, is most directly an exa.pdf
The universe began 13 7 billion years ago,  is most directly an exa.pdfThe universe began 13 7 billion years ago,  is most directly an exa.pdf
The universe began 13 7 billion years ago, is most directly an exa.pdf
 
The Stevens Company provided $57000 of services on acco.pdf
The Stevens Company provided $57000 of services on acco.pdfThe Stevens Company provided $57000 of services on acco.pdf
The Stevens Company provided $57000 of services on acco.pdf
 
The papillae on the tongue that do not contain any taste buds are the.pdf
The papillae on the tongue that do not contain any taste buds are the.pdfThe papillae on the tongue that do not contain any taste buds are the.pdf
The papillae on the tongue that do not contain any taste buds are the.pdf
 
QUESTION 13 Which of the following benefits is a component of Social .pdf
QUESTION 13 Which of the following benefits is a component of Social .pdfQUESTION 13 Which of the following benefits is a component of Social .pdf
QUESTION 13 Which of the following benefits is a component of Social .pdf
 
Padre, Inc., buys 80 percent of the outstanding common stock of Sier.pdf
Padre, Inc., buys 80 percent of the outstanding common stock of Sier.pdfPadre, Inc., buys 80 percent of the outstanding common stock of Sier.pdf
Padre, Inc., buys 80 percent of the outstanding common stock of Sier.pdf
 
Operating Systems Structure1- Explain briefly why the objectives o.pdf
Operating Systems Structure1- Explain briefly why the objectives o.pdfOperating Systems Structure1- Explain briefly why the objectives o.pdf
Operating Systems Structure1- Explain briefly why the objectives o.pdf
 
Need help with this java code. fill in lines where needed. Also, not.pdf
Need help with this java code. fill in lines where needed. Also, not.pdfNeed help with this java code. fill in lines where needed. Also, not.pdf
Need help with this java code. fill in lines where needed. Also, not.pdf
 
IP has no mechanism for error reporting or error-correcting. ICMPv4 .pdf
IP has no mechanism for error reporting or error-correcting. ICMPv4 .pdfIP has no mechanism for error reporting or error-correcting. ICMPv4 .pdf
IP has no mechanism for error reporting or error-correcting. ICMPv4 .pdf
 
Informed Consent is a significant requirement for all provider types.pdf
Informed Consent is a significant requirement for all provider types.pdfInformed Consent is a significant requirement for all provider types.pdf
Informed Consent is a significant requirement for all provider types.pdf
 
In the MVC Architecture, why is it important to keep the model, view.pdf
In the MVC Architecture, why is it important to keep the model, view.pdfIn the MVC Architecture, why is it important to keep the model, view.pdf
In the MVC Architecture, why is it important to keep the model, view.pdf
 
in roughly 400 words please describe3 affective outcomes of diver.pdf
in roughly 400 words please describe3 affective outcomes of diver.pdfin roughly 400 words please describe3 affective outcomes of diver.pdf
in roughly 400 words please describe3 affective outcomes of diver.pdf
 
Im having issues with two homework questions. I get the gist of th.pdf
Im having issues with two homework questions. I get the gist of th.pdfIm having issues with two homework questions. I get the gist of th.pdf
Im having issues with two homework questions. I get the gist of th.pdf
 
Implement the interface you wrote for Lab B (EntryWayListInterface)..pdf
Implement the interface you wrote for Lab B (EntryWayListInterface)..pdfImplement the interface you wrote for Lab B (EntryWayListInterface)..pdf
Implement the interface you wrote for Lab B (EntryWayListInterface)..pdf
 
How does an understanding of management and organizational behavior .pdf
How does an understanding of management and organizational behavior .pdfHow does an understanding of management and organizational behavior .pdf
How does an understanding of management and organizational behavior .pdf
 
Hey, I need some help coding this C++ assignment.ObjectivesThis.pdf
Hey, I need some help coding this C++ assignment.ObjectivesThis.pdfHey, I need some help coding this C++ assignment.ObjectivesThis.pdf
Hey, I need some help coding this C++ assignment.ObjectivesThis.pdf
 
Explain the rise of social movement unionism (250 word counts).pdf
Explain the rise of social movement unionism  (250 word counts).pdfExplain the rise of social movement unionism  (250 word counts).pdf
Explain the rise of social movement unionism (250 word counts).pdf
 
Explain in detail the Next Generation Networks (NGN). Draw its archi.pdf
Explain in detail the Next Generation Networks (NGN). Draw its archi.pdfExplain in detail the Next Generation Networks (NGN). Draw its archi.pdf
Explain in detail the Next Generation Networks (NGN). Draw its archi.pdf
 
Discussshare examples of poorly writteninappropriate email message.pdf
Discussshare examples of poorly writteninappropriate email message.pdfDiscussshare examples of poorly writteninappropriate email message.pdf
Discussshare examples of poorly writteninappropriate email message.pdf
 
Description (Part A) In this lab you will write a Queue implementati.pdf
Description (Part A) In this lab you will write a Queue implementati.pdfDescription (Part A) In this lab you will write a Queue implementati.pdf
Description (Part A) In this lab you will write a Queue implementati.pdf
 
Definition Unital ring Definition Unital ring Solution.pdf
Definition Unital ring  Definition Unital ring Solution.pdfDefinition Unital ring  Definition Unital ring Solution.pdf
Definition Unital ring Definition Unital ring Solution.pdf
 

Recently uploaded

Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 

Recently uploaded (20)

Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 

I am trying to add the units to my println in Java, what I have so f.pdf

  • 1. I am trying to add the units to my println in Java, what I have so far is System.out.println("The projectile velocity is " +decf.format(Vel)); When I give its input, its giving out But in reality its supposed to have units such as How do I add the units? Solution System.out.println("The projectile velocity is " +decf.format(Vel) + "feet per second"); The above command will have the unit also with the answer