MASCHINE test Linear Regression with Multiple Variables

package samples.string.japanese; public class ZenkakuAlphabetToHankakuAlphabet { public static String zenkakuAlphabetToHankaku(String s) { StringBuffer sb = new StringBuffer(s); for (int i = 0; i < sb.length(); i++) { char c = sb.charAt(i); if (c >= 'a' && c <= 'z') { sb.setCharAt(i, (char) (c - 'a' + 'a')); } else if (c >= 'A' && c <= 'Z') { sb.setCharAt(i, (char) (c - 'A' + 'A')); } } return sb.toString(); } public static void main(String[] args) { System.out.println (zenkakuAlphabetToHankaku ("☆ Java programming ☆")); } }00.png

Recommended Posts

MASCHINE test Linear Regression with Multiple Variables
[MASCHINE Learning] Linear Regression with One Variable
Supports multiple test cases with one method with @ParameterizedTest!
Assignment to multiple variables with the ternary operator
Integration Test with Gradle
[Rails] Test with RSpec
Test Nokogiri with Rspec.
Automatically test with Gauge
Load test with JMeter
Unit test with Junit.