mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
@@ -11,9 +11,7 @@ class LongestPalindromicSubstring {
|
||||
Scanner sc = new Scanner(System.in);
|
||||
System.out.print("Enter the string: ");
|
||||
str = sc.nextLine();
|
||||
System.out.println(
|
||||
"Longest substring is : " + s.longestPalindrome(str)
|
||||
);
|
||||
System.out.println("Longest substring is : " + s.longestPalindrome(str));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user