Lab2Exercise3.java - package week2demob import java.util.Scanner public class Lab2Exercise3 public static void main(String args Scanner s = new

Lab2Exercise3.java - package week2demob import...

This preview shows page 1 out of 1 page.

package week2demob;import java.util.Scanner;public class Lab2Exercise3 {public static void main(String[] args) {Scanner s = new Scanner(System.in);System.out.println("Enter String: ");String str = s.nextLine();String duplicates = "";for (int i = 0; i < str.length() - 1; i++) {
Background image

You've reached the end of your free preview.

Want to read the whole page?

  • One '14
  • new Scanner, Scanner s, public class Lab2Exercise3

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture