摘要: 1 public class Question5 { 2 public static void main(String[] args) { 3 //声明一个满足条件整数型数组(6和0一次) 4 int[] a = {1, 2, 3, 4, 5, 1, 6, 2, 7, 3, 8, 4, 9, 5, 阅读全文
posted @ 2020-03-04 19:35 浪漫主义程序员 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 1 public class Question4 { 2 public static void main(String[] args) { 3 //声明一段字符串存入字符串数组中(好像8满足) 4 char[] str={'a','d','g','f','e','z','8','9','a','d' 阅读全文
posted @ 2020-03-04 19:32 浪漫主义程序员 阅读(399) 评论(1) 推荐(0) 编辑
摘要: 1 public class Question2 { 2 public static void main(String[] args) { 3 //从键盘得到一个五位正整数 4 Scanner sc = new Scanner(System.in); //new一个标准输入流 5 System.ou 阅读全文
posted @ 2020-03-04 19:30 浪漫主义程序员 阅读(745) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.Scanner; 2 3 public class Question1 { 4 public static void main(String[] args) { 5 //从键盘得到一个值 6 Scanner sc = new Scanner(System.in) 阅读全文
posted @ 2020-03-04 19:25 浪漫主义程序员 阅读(2140) 评论(0) 推荐(0) 编辑
摘要: 1 public class SixteenToTen { 2 public static void main(String[] args) { 3 //用数组得到要转换的值 4 char[] a={'e','f'}; 5 //声明一个整型数组接收数组转化过来的值 6 int[] b=new int 阅读全文
posted @ 2020-03-04 19:22 浪漫主义程序员 阅读(1503) 评论(0) 推荐(0) 编辑
摘要: 1 public class EightToTen { 2 public static void main(String[] args) { 3 //得到要转换的值 4 int n=345; 5 //声明一个x得到转化后的值 6 long x=0; 7 //声明count 来统计此时的基为多少 8 阅读全文
posted @ 2020-03-04 19:21 浪漫主义程序员 阅读(826) 评论(0) 推荐(0) 编辑
摘要: 1 package com.scwyqin.Transition; 2 3 /* 4 * @author:scwyqin 5 * @date: 2020-3-2 19:21 6 */ 7 8 import java.util.Scanner; 9 10 public class Transition 阅读全文
posted @ 2020-03-04 19:20 浪漫主义程序员 阅读(1023) 评论(0) 推荐(0) 编辑