青羊经侦大队-数据平台
wl
2022-12-28 d759812b05ceffc6021dee9ebf61bc0c22472df3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.example.jz.dao;
 
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
 
/**
 * @author 安瑾然
 * @data 2022/7/18 - 11:49 AM
 * @description
 */
@SpringBootTest
class UserDaoTest {
 
    @Autowired
    private UserDao userDao;
 
    @Test
    void updateUser() {
        String str = "XXO";
        int conut = 0;
        for (char c : str.toCharArray()) {
            if (c != 'O') {
                conut++;
            }
        }
        System.out.println(conut);
    }
}