小编Ame*_*eet的帖子

在ubuntu 12.04LTS上安装tomcat 7

我最近升级到Ubuntu 12.04LTS并安装Tomcat 7但出现以下错误:

root@me:/# sudo apt-get install tomcat7 tomcat7-docs tomcat7-examples tomcat7-admin -y
Reading package lists... Done
Building dependency tree 
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet …
Run Code Online (Sandbox Code Playgroud)

ubuntu tomcat

5
推荐指数
1
解决办法
8949
查看次数

如何在JavaScript中从数字数组或数字字符串创建整数或数字

我想创建一个整数或数字,其中包含数字或字符串数​​组中的所有数字.我怎样才能做到这一点?

例如:

digitArry = [9', '8', '7', '4', '5', '6'];
Run Code Online (Sandbox Code Playgroud)

应该成为

integer = 987456;
Run Code Online (Sandbox Code Playgroud)

javascript

5
推荐指数
1
解决办法
78
查看次数

主线程的名称

我们能改变主线程的名称吗?并在主要方法

Thread t = Thread.currentThread();  
System.out.println(t);
Run Code Online (Sandbox Code Playgroud)

它打印:

Thread[main,5,main]
Run Code Online (Sandbox Code Playgroud)

- 这里是第一个线程名称,第二个优先级,第三个是当前线程所属的线程组.

这样对吗?

什么是线程组第三个参数?

java multithreading

3
推荐指数
1
解决办法
6345
查看次数

标签 统计

java ×1

javascript ×1

multithreading ×1

tomcat ×1

ubuntu ×1