title: Java bolding and underlining output
body: <p>I have this code </p>
  
  <pre><code>public static void main(String[] args)
  {
      Scanner keyboard = new Scanner(System.in);
      System.out.println("Enter any sentence.");
      String line = keyboard.nextLine();
      String s1 = line;
      String[] sp = s1.split(" ");
      System.out.println("second word is " + sp[1]);
  }
  </code></pre>
  
  <p>It prints out second word. So if you input</p>
  
  <blockquote>
    <p>hi i am practicing java</p>
  </blockquote>
  
  <p>it will output</p>
  
  <blockquote>
    <p>The second word is i</p>
  </blockquote>
  
  <p>Is there any way or method to make it print out <code>sp[1]</code> to look bold and underlined or anything so it sticks out? The output would be</p>
  
  <blockquote>
    <p>The second word is <strong><em>I</em></strong></p>
  </blockquote>