首页 > 编程语言 >TestJavaIntChar

TestJavaIntChar

时间:2024-09-25 09:55:18浏览次数:3  
标签:TestJavaIntChar ch System num println public out


package com.shrimpking.t1;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : Shrimpking
 * @create 2024/9/14 11:19
 */
public class TestJavaIntChar
{
    public static void main(String[] args)
    {
        int num = 3; //整型变量
        char ch = 'z'; //字符变量

        System.out.println(num + "是整数");
        System.out.println(ch + "是字符");
    }
}

标签:TestJavaIntChar,ch,System,num,println,public,out
From: https://blog.51cto.com/u_15356972/12107195

相关文章