SUMANJEETforData Structure and algorithmsumanjeet-dsa.hashnode.devยทAug 30, 2023StringsStrings are an array of characters. To declare a string String str = "Sumanjeet"; Take input from user String str = sc.next(); it will take only the first word as input. String str = sc.nextLine(); it will take all words (complete line) as input. Som...DSAAdd a thoughtful commentNo comments yetBe the first to start the conversation.