BAEL-838 Refromatted code using formatter.xml. Added Assert.assertEquals import. Renamed test to follow convention. Reordered tests.

(cherry picked from commit d9d35f8)
This commit is contained in:
iaforek
2017-05-08 20:12:17 +02:00
committed by Predrag Maric
parent b29cb580a6
commit c53095a3d7
2 changed files with 44 additions and 64 deletions

View File

@@ -1,18 +1,11 @@
/**
*
*/
package com.baeldung.string;
/**
* @author iaforek
*
*/
public class RemoveLastChar {
public static String substring (String s) {
if (s == null || s.length() == 0) {
return s;
} else {
return (s.substring(0, s.length() - 1));
}
}
public static String substring(String s) {
if (s == null || s.length() == 0) {
return s;
} else {
return (s.substring(0, s.length() - 1));
}
}
}