Arush22

Untitled

Jan 6th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. 12. Char
  2. 33. Scanner input = new Scanner(System.in);
  3. System.out.println("Type in a Character.");
  4. String entry = input.next();
  5. char letter = entry.charAt(0);
  6. System.out.println(Character.isLetter(letter));
  7. 35. You must place a "java." before "text"
  8. 44. You have not imported the proper java package.
  9. You must type "import java.text.NumberFormat;"
  10. You must include the keyword "new" before "NumberFormat.getCurrencyInstance();"
  11. 71. I would use the method parseInt of the Integer class when I want to convert a variable into an integer variable. For example when I want to convert the string "523" into the integer 523 I will use the parseInt method.
  12.  
  13. 72. With already provided classes a programmer no longer has to type up a lengthy piece of code to create a new class every time he wants to perform a common task. All he or she has to do is call the right class.
  14.  
  15. Programmers now don't have to worry about the basics when they approach a program and can focus on the truly complicated logic of program while also being able to call whichever provided classes he needs in order to make the process of programming easier.
Add Comment
Please, Sign In to add comment