On line 23, How do you construct a method that returns a consonant using the "yourstring" variable. public class AssignmentFive {public static void main(String[] args) {78.101112Scanner input =...


On line 23, How do you construct a method that returns a consonant  using the "yourstring" variable.


1.<br>package assignments;<br>import java.util.Scanner;<br>3<br>5 ><br>public class AssignmentFive {<br>public static void main(String[] args) {<br>7<br>8.<br>10<br>11<br>12<br>Scanner input = new Scanner(System.in);<br>13<br>System.out.println(

Extracted text: 1. package assignments; import java.util.Scanner; 3 5 > public class AssignmentFive { public static void main(String[] args) { 7 8. 10 11 12 Scanner input = new Scanner(System.in); 13 System.out.println("Input your String:"); 14 15 String yourstring = input.nextLine(); 16 17 countNumber0fConsonants(yourstring); 18 19 20 21 22 private static void countNumber0fConsonants (String yourstring) { 23 24 System.out.println(yourstring); 25 26 if (yourstring==){ 27 28 } 29 30 31 32

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here