Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Shavit Borisov
- // HW
- import java.util.Scanner;
- public class WebsiteCompanyName {
- public static void main(String[] args)
- {
- Scanner in = new Scanner (System.in);
- String input;
- System.out.print("Enter a website url: ");
- input = in.nextLine();
- System.out.printf("The company's name is %s", input.substring(4, (input.length() - 4)));
- in.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement