So I have this intro to Java class and I am having difficulty because my teacher is a senile 75-year old lady who thinks that teaching us how many bits are in different thing is more important then teaching us how to actually program. Our assignment is to "Write a program that will read a line of text as input and then…
<font class="small">Code:</font><hr /><pre>import java.io.*; import java.lang.*; public class help { public static void main (String args[]) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String userInput = br.readLine(); int wordends = userInput.indexOf(' '); String…