Question: import java.util.Scanner; import java.util.Random; public class MainClass { public static void main ( String [ ] args ) { / / Task 1 : char
import java.util.Scanner; import java.util.Random; public class MainClass public static void mainString args Task : char ca c c c; System.out.printlnadd your code here; convert c to upper case System.out.printlnadd your code here; check if c is an upper case System.out.printlnadd your code here; check if c is a digit System.out.printlnadd your code here; check if c is a digit System.out.printlnadd your code here; check if c is a letter System.out.printlnadd your code here; check if c is a letter or a digit System.out.printlnadd your code here; check if c is a special character Task : String sentence "The internationalization of intergovernmental organizations necessitates comprehensive and meticulously detailed documentation"; Q:what is the length of sentence System.out.printlnadd your code here; Q: write a java code snippet to determine and print the number of words in sentence variable add your code here Q: print the index of the first z character in sentence System.out.printlnadd your code here; Q: what character is at index System.out.printlnadd your code here; Q: does sentence end with "ion"? System.out.printlnadd your code here; Q: does sentence start with with "the"? System.out.printlnadd your code here; Q: extract "internationalization of intergovernmental" from sentence, store it in a variable and print it add your code here Task : String name"Adam"; String name"adam"; compare the content of name & namecase sensitive & not case sensitive System.out.printlnadd your code here; case sensitive System.out.printlnadd your code here; not case sensitive Task : int num; double num; convert num and num to strings and store the strings into String variables, after that print the string variables add your code here Task : Q: create a stringBuilder object and initilize it with your full name add your code here Q: what is the size length "how many characters" of the stringBuilder object Q: what is the capacity of the stringBuilder object Q: add your id number to your name stored in the stringBuilder object Q: explain what is the different between the sizelength of a string builder and the capacity System.out.printlnadd your code here;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
