From 2b8f88a45f3ae732f3da38520a1369464851c9ab Mon Sep 17 00:00:00 2001 From: Rhinemann Date: Mon, 5 Jun 2023 16:37:15 +0300 Subject: [PATCH] Lab 3, cosmetic. --- Java/lab_3/lab_3.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Java/lab_3/lab_3.java b/Java/lab_3/lab_3.java index 394e4e5..7a5ab2a 100644 --- a/Java/lab_3/lab_3.java +++ b/Java/lab_3/lab_3.java @@ -13,8 +13,8 @@ public class lab_3 { leftBoundary--; rightBoundary++; } - // if it's length is greater than maxLength update - // maxLength and res + // if it's length is greater than maxStrLength update + // maxLength and result if (rightBoundary - leftBoundary - 1 >= maxStrLength) { result = string.substring(leftBoundary + 1, rightBoundary); maxStrLength = rightBoundary - leftBoundary - 1;