Java string manipulation program titles, now with sample inputs :
List of 100 real-time Java string manipulation program titles, now with sample inputs :
๐ Authentication & Tokens
-
Extract token value from API response string
๐ธInput: "token=abc123xyz; sessionId=xyz456;"
-
Extract only digits from a token string
๐ธInput: "token=45gh6ab78;"
-
Parse JWT and extract payload
๐ธInput: "eyJhbGci...eyJ1c2VyIjoiam9obiJ9..."
-
Extract session ID from cookie string
๐ธInput: "JSESSIONID=58DFA0A2B54D5E85F39D;"
-
Validate Bearer token format
๐ธInput: "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
-
Remove prefix from access token
๐ธInput: "access_token=abc123xyz"
-
Split authorization header into type and value
๐ธInput: "Basic YWxhZGRpbjpvcGVuc2VzYW1l"
-
Check if token is expired using timestamp in string
๐ธInput: "exp=1718918400;"
-
Parse OAuth callback URL and extract code
๐ธInput: "https://example.com/callback?code=12345abc"
-
Extract CSRF token from HTML page source
๐ธInput: "<input type='hidden' name='csrf' value='xyz456'>"
๐ง Emails & Usernames
-
Extract domain from email
๐ธInput: "user@openai.com"
-
Extract username from email
๐ธInput: "john.doe@gmail.com"
-
Check if email string is valid
๐ธInput: "example@domain.co"
-
Mask email address (e.g., a***@gmail.com)
๐ธInput: "alice@gmail.com"
-
Extract company name from official email
๐ธInput: "ravi@tcs.com"
-
Validate email format using regex
๐ธInput: "test_user@x.in"
-
Extract multiple emails from a CSV string
๐ธInput: "john@example.com, mary@abc.org, test@x.co"
-
Count email domains in a string list
๐ธInput: ["abc@gmail.com", "xyz@gmail.com", "abc@yahoo.com"]
-
Group users by email domain
๐ธInput: ["sara@tcs.com", "ram@infosys.com", "rita@tcs.com"]
-
Remove duplicate emails from a string
๐ธInput: "a@x.com, b@y.com, a@x.com"
๐งพ Finance, SMS, and Billing
-
Extract amount from SMS
๐ธInput: "Your account is credited with Rs. 5500.00"
-
Extract transaction ID from message
๐ธInput: "Txn ID: ABCD123456XYZ;"
-
Validate if invoice number is in format INV-XXXX
๐ธInput: "INV-1456"
-
Mask credit card number except last 4 digits
๐ธInput: "1234567812345678"
-
Extract GST number from string
๐ธInput: "GST: 27ABCDE1234F1Z5"
-
Extract bank name from IFSC code
๐ธInput: "SBIN0001234"
-
Identify UPI ID from string
๐ธInput: "paid to xyz@ybl"
-
Extract date from billing string
๐ธInput: "Invoice Date: 15-07-2025"
-
Format account number with dashes
๐ธInput: "123456789012"
-
Extract PAN number from user input
๐ธInput: "My PAN is ABCDE1234F"
๐ฑ Mobile & Phone Formatting
-
Format 10-digit number into phone format
๐ธInput: "9876543210"
-
Validate if number is Indian mobile number
๐ธInput: "919876543210"
-
Extract country code from international number
๐ธInput: "+91-9876543210"
-
Convert numeric string to dial-pad format
๐ธInput: "1800HELLOAI"
-
Split contact string with multiple numbers
๐ธInput: "9823xxxxx,9874xxxxx"
-
Mask all but last 4 digits of phone number
๐ธInput: "9876543210"
-
Format phone number to E.164 format
๐ธInput: "9876543210"
→+919876543210
-
Validate SIM slot information from JSON
๐ธInput: '{"slot":1,"imei":"123456789012345"}'
-
Extract carrier name from mobile log
๐ธInput: "Carrier: Jio 4G, Signal: -85dBm"
-
Count valid mobile numbers in a string
๐ธInput: "9823xxxxx,abcd123,9876xxxx"
๐ URLs and Web Data
-
Extract video ID from YouTube URL
๐ธInput: "https://youtube.com/watch?v=ABC123XYZ"
-
Extract domain name from URL
๐ธInput: "https://www.openai.com/products/gpt"
-
Extract query parameters from URL
๐ธInput: "site.com/page?user=12&id=78"
-
Parse anchor tag and extract href
๐ธInput: "<a href='https://openai.com'>Link</a>"
-
Validate if URL is HTTPS
๐ธInput: "https://google.com"
-
Decode URL-encoded string
๐ธInput: "name=Sunil%20Sonawane"
-
Extract image file names from HTML
๐ธInput: "<img src='logo.png'>"
-
Extract page title from HTML string
๐ธInput: "<title>Dashboard</title>"
-
Check if string contains valid URL
๐ธInput: "Check this link: https://abc.in"
-
Extract protocol (http/https) from URL
๐ธInput: "https://mail.google.com"
๐ File Path & Directory
-
Extract filename from full path
๐ธInput: "C:/users/files/report.pdf"
-
Get file extension from path
๐ธInput: "/home/download/sample.csv"
-
Check if file is a PDF or DOC
๐ธInput: "document.docx"
-
Rename file by adding timestamp
๐ธInput: "invoice.pdf"
-
Create a slug from file name
๐ธInput: "My File Name 2025.doc"
-
Check if path is absolute
๐ธInput: "/usr/data/"
-
Replace whitespaces in file names
๐ธInput: "my resume 2025.doc"
-
Extract folder name from path
๐ธInput: "C:/Users/Sunil/Documents/"
-
Get file size info from string
๐ธInput: "report.doc (Size: 2.3MB)"
-
Extract filename from Windows-style path
๐ธInput: "C:\\Users\\Admin\\data.csv"
๐ Search, Highlighting, and Keywords
-
Highlight keyword in paragraph
๐ธInput: "AI is the future. AI will dominate tech."
๐ธKeyword: "AI"
-
Replace all keywords with bold tag
๐ธInput: "AI helps in healthcare"
๐ธKeyword: "AI"
-
Count keyword occurrences
๐ธInput: "Cloud and AI and Cloud computing are hot"
๐ธKeyword: "Cloud"
-
Search for case-insensitive match
๐ธInput: "Machine Learning is fun"
๐ธKeyword: "learning"
-
Remove banned words from comment
๐ธInput: "This app is damn useless"
๐ธBanned Words: ["damn", "useless"]
-
Extract hashtags from post
๐ธInput: "Loving the #AI and #MachineLearning progress"
-
Extract @mentions from comment
๐ธInput: "Thanks @openai for GPT support"
-
Find longest matching keyword
๐ธInput: "We use JavaScript and Java"
๐ธKeywords: ["Java", "JavaScript"]
-
Auto-suggest word based on prefix
๐ธInput: "auto"
๐ธList: ["automation", "autonomous", "auth"]
-
Extract trending tags from string
๐ธInput: "#ai #ai #tech #ml #tech"
๐งช Validation and Checking
-
Validate password strength
๐ธInput: "A1@bcdef"
-
Validate alphanumeric input
๐ธInput: "abc123"
-
Check if string is palindrome
๐ธInput: "madam"
-
Check if all characters are unique
๐ธInput: "apple"
-
Validate license key format
๐ธInput: "AB12-CD34-EF56-GH78"
-
Check if string contains only letters
๐ธInput: "OpenAI"
-
Validate coupon code
๐ธInput: "SAVE2025"
๐ธFormat: 4 letters + 4 digits
-
Validate vehicle number format
๐ธInput: "MH12AB1234"
-
Check if postal code is valid
๐ธInput: "411027"
(India) -
Validate if a string is binary
๐ธInput: "10101001"
๐ Cleanup & Formatting
-
Remove special characters from text
๐ธInput: "Hello! How@are#you$doing?"
-
Replace multiple spaces with one
๐ธInput: "This is spaced text"
-
Trim and clean CSV entries
๐ธInput: " apple , banana , cherry "
-
Format string to title case
๐ธInput: "java programming language"
-
Convert sentence to camelCase
๐ธInput: "convert this to camel case"
-
Convert camelCase to snake_case
๐ธInput: "myTestVariable"
-
Normalize name input (trim, capitalize)
๐ธInput: " sunil SONAWANE "
-
Remove empty lines from multiline string
๐ธInput: "Line1\n\n\nLine2\n"
-
Convert string to lowercase without built-ins
๐ธInput: "HELLO World"
-
Strip emojis from message
๐ธInput: "Hello ๐, how are you ๐?"
๐ง Smart Text Extraction
-
Extract first name and last name
๐ธInput: "Sunil Sonawane"
-
Extract initials from full name
๐ธInput: "Virat Kohli"
-
Extract date from sentence
๐ธInput: "Appointment is on 25/07/2025 at 3PM"
-
Extract age from string
๐ธInput: "My age is 29 years"
-
Extract city name from address
๐ธInput: "Flat 301, Galaxy Towers, Pune, Maharashtra"
-
Extract digits from noisy sensor string
๐ธInput: "Temp: 28.5C, Humidity: 65%"
-
Extract key-value pairs from log entry
๐ธInput: "user=John;id=123;status=active;"
-
Extract version from app string (e.g., v1.2.3)
๐ธInput: "App version: v2.4.1-beta"
-
Convert string to JSON-like map
๐ธInput: "name=Sunil;age=30;city=Pune"
-
Extract language code from locale string
๐ธInput: "en_US"
→Output: "en"
Comments
Post a Comment