码迷,mamicode.com
首页 >  
搜索关键字:osd out    ( 36245个结果
java静态无名函数(静态初始化块)与java的运行流程
public classTest {public Test() {System.out.println(" 构造函数");}@1:静态初始化块static{System.out.println("static{}");}@2:初始化块{System.out.println("{}");}public...
分类:编程语言   时间:2014-05-19 15:35:02    阅读次数:295
Java基础知识
volatile:java关键字,意为易变的,不稳定的,标识修饰java同步字段,示例:java单利模式public class ApplicationCache{ private Map attributeMap; // volatile so that JVM out-of-order...
分类:编程语言   时间:2014-05-19 14:56:56    阅读次数:334
[游戏学习22] MFC 井字棋 双人对战
>_____ 2 #include "TicTac.h" 3 #include 4 #include 5 #include 6 using namespace std; 7 CMyApp myApp; 8 /*ofstream Cout("out.txt"); 9 void CM...
分类:其他好文   时间:2014-05-19 14:34:51    阅读次数:430
一个多态的陷阱
域和静态方法不具有多态性:public class Test3 { public static void main(String[] args) { Super sup = new Sub(); System.out.println(sup.field); System.out.println...
分类:其他好文   时间:2014-05-19 14:28:59    阅读次数:314
JSP页面输出的几种方式:
1. 内置九大对象之out 下载图片2. JSP输出表达式 JSP中出现大量脚本3. response.getWriter() null 974. response.getOutputStream() 没有任何的数据过滤5. 默认使用HTMLFilter进行数据的过滤 6. EL 主要是和...
分类:Web程序   时间:2014-05-19 14:09:40    阅读次数:260
android优化从网络中加载图片速度。。
从网络中加载图片主要要注意两个方面的问题:1.内存管理:图片占的内存很大,假如图片数量多,很容易让系统抛出out of memory的异常。 同时我们也要注意不同android版本中内存管理的区别。2.性能:图片的加载速度,和加载图片时不影响UI的流畅性尤其是在ViewPager,Gr...
分类:移动开发   时间:2014-05-19 11:51:27    阅读次数:298
POJ 2387 Til the Cows Come Home dijkstra算法 用邻接表和邻接矩阵
题目如下: Til the Cows Come Home Time Limit: 1000MS        Memory Limit: 65536K Total Submissions: 27726        Accepted: 9353 Description Bessie is out in the field and wants to get back to the ba...
分类:其他好文   时间:2014-05-18 13:50:11    阅读次数:263
jenkins在使用maven部署到nginx+tomcat服务器时出现504错误
环境:jenkins+maven+nginx+tomcat 在执行jenkins job发布项目到远程服务器,服务器使用nginx+tomcat。默认使用80端口,通过nginx转发请求。在执行tomcat:redeploy时,出现下面的错误: [ERROR] Failed toexecute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:red...
分类:其他好文   时间:2014-05-18 13:38:52    阅读次数:510
LeetCode: Reverse Nodes in k-Group [024]
【题目】 Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is. You may not alter the values in the nodes, only n...
分类:其他好文   时间:2014-05-18 10:22:34    阅读次数:367
Linux环境编程之信号(一):信号基本概述
引言 假如在后台运行一个可执行程序./a.out,如果想终止该程序,通常会按下Ctrl-C,从而产生一个中断,其实这个过程的实现就是通过信号完成的。信号是软件中断,它提供了一种处理异步事件的方法。 (一) 每个信号都有一个名字,这些名字都以三个字符SIG开头。例如SIGALARM是闹钟信号,当由alarm函数设置的计时器超时后产生此信号。Linux除支持31种不同信号外,还支持应用程序额外定...
分类:系统相关   时间:2014-05-18 04:50:12    阅读次数:347
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!