TA的每日心情 | 开心 2021-3-12 23:18 |
---|
签到天数: 2 天 [LV.1]初来乍到
|
《java程序设计》PPT教学课件和word教案共十二章
第一章 概述
第二章 JAVA语言基础
第三章 面向对象技术
第四章 Java类和对象的高级特征
第五章 字符串类
第六章 异常处理
第七章 Java图形用户界面
第八章 Java Applet
第九章 输入输出系统
第十章 多线程
第十一章 网络编程
考考你(4)
- public class Test{
- public static void stringReplace(String text){
- text=text.replace("j","l");
- }
- public static void bufferReplace(StringBuffer text){
- text=text.append("c");
- }
- public static void main(String args[]){
- String textString=new String("java");
- StringBuffer textBuffer=new StringBuffer("java");
- stringReplace(textString);
- bufferReplace(textBuffer);
- System.out.println(textString+textBuffer);
- }
- }
- what is the output?
复制代码 点击此处查看答案
function TempSave(ElementID)
{
CommentsPersistDiv.setAttribute("CommentContent",document.getElementById(ElementID).value);
CommentsPersistDiv.save("CommentXMLStore");
}
function Restore(ElementID)
{
CommentsPersistDiv.load("CommentXMLStore");
document.getElementById(ElementID).value=CommentsPersistDiv.getAttribute("CommentContent");
}
源码下载:http://file.javaxxz.com/2014/10/1/140057672.zip |
|