我正在制作一款Android应用程序,它可以为您获得的积分数量设置时间限制.但是如果你关闭应用程序,计时器会继续运行.如何暂停CountDownTimer应用暂停时的暂停状态?
我在这个面向对象的课程,但我只是不知道如何做到这一点.我知道基本的基本原理但不是这样的.我被要求创建一个程序,将#的基数10转换为基数2,基数8和基数16.然后,在我们被要求将其从2,8,16转换回基数10.之后我收集了一些信息从其他网站,我实际上最终编辑了一点.请帮忙!我更喜欢它,如果你们真的帮助和编辑自己并将它发送给我,但如果这太多了,请尝试指导我,因为我不太了解Java.到目前为止,我有:
import java.util.Scanner;
public class baseconverterr
{
public static void main(String[] args) {
// Read the conversion choice from the user
System.out.println("Choose 1 or 2 or 3:");
System.out.println("1: conversion from base 10 to base 2 ");
System.out.println("2: conversion from base 10 to base 8");
System.out.println("3: conversion from base 10 to base 16");
// do you want 1, 2 , or 3? you have your choice
Scanner in = new Scanner(System.in);
int choice = in.nextInt();
String string = in.nextLine();
// Read …Run Code Online (Sandbox Code Playgroud)