public class demon04 { public static void main(String[] args) { int i = 128; double b = i; //强制转换 (类型)变量名 由高-->低 //自动转换 由低-->高 System.out.println(i); ...
分类:
其他好文 时间:
2021-02-16 12:46:29
阅读次数:
0
HelloWorld 随便新建一个文件夹,存放代码 新建一个java文件 编写代码 public class Hello{ public static void main(String[] args){ System.out.print("Hello,World!"); }} 编译javac jav ...
分类:
其他好文 时间:
2021-02-16 12:44:13
阅读次数:
0
用户交互Scanner Java.util.Scanner导入的Scanner类可以通过Scanner类来获取用户输入 基本语法 Scanner sc=new Scanner(System.in); //创建一个扫描器对象,用于接收键盘数据 通过Scanner类的next()与nexlint()方法 ...
分类:
其他好文 时间:
2021-02-16 12:41:45
阅读次数:
0
1、创建新的表空间 create undo tablespace undo_new datafile '/u01/oracle/oradata/yscsfhx/newundotbs01.dbf' size 5m; View Code 2、切换到新的Undo表空间上 alter system set ...
分类:
其他好文 时间:
2021-02-16 12:25:14
阅读次数:
0
Schedule timed jobs on macOS with launchd launchd is a robust scheduled job automation tool on macOS that allows you to schedule a task to be run at r ...
分类:
系统相关 时间:
2021-02-16 12:18:49
阅读次数:
0
// 命令行java命令执行的时候这里会报错的,所以需要去com的上一级的目录去java com.mixi.wc.Demo 这样去执行 package com.moxi.wc; /** * @author Mr.Wang * @version 1.0 * @since 1.8 */ public c ...
分类:
其他好文 时间:
2021-02-16 11:56:24
阅读次数:
0
如何不通过第三个变量交换两个变量的值 public class HelloWorld { public static void main(String []args) { int a = 2; int b = 3; //为了大家直观的感受输出结果, //我们先输出下,a b,的初始值 System. ...
分类:
其他好文 时间:
2021-02-16 11:42:02
阅读次数:
0
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u ...
分类:
其他好文 时间:
2021-02-15 12:42:07
阅读次数:
0
水题~,就简单转换下时间。 int a,b; int main() { cin>>a>>b; int tim=round((b-a)/100.0); int hh=tim/3600,mm=tim%3600/60,ss=tim%3600%60; printf("%02d:%02d:%02d\n",hh ...
分类:
其他好文 时间:
2021-02-15 12:25:04
阅读次数:
0
JAVA流程控制 Scanner对象 通过Scanner类来获取用户的输入 Scanner s = new Scanner(System.in); 通过Scanner类的next()与nextLine(方法获取输入的字符串,在读取前 我们一般需要使用hasNext()与hasNextLine()判断 ...
分类:
编程语言 时间:
2021-02-15 12:17:43
阅读次数:
0