码迷,mamicode.com
首页 >  
搜索关键字:println    ( 5792个结果
spring-boot整合freemarker 出现404
今天遇到了ftl整合springboot出现的问题 @Controller public class IndexController { @RequestMapping("hello") public String index(){ System.out.println("aaa"); return ...
分类:编程语言   时间:2020-05-26 01:34:17    阅读次数:123
scala的异常处理try catch
object Test { def main(args: Array[String]) { try { val f = new FileReader("input.txt") } catch { case ex: FileNotFoundException =>{ println("Missing ...
分类:其他好文   时间:2020-05-24 22:31:48    阅读次数:82
Go语言系列之标准库log
Go语言内置的log包实现了简单的日志服务。本文介绍了标准库log的基本使用。 使用Logger log包定义了Logger类型,该类型提供了一些格式化输出的方法。本包也提供了一个预定义的“标准”logger,可以通过调用函数Print系列(Print|Printf|Println)、Fatal系列 ...
分类:编程语言   时间:2020-05-24 19:32:11    阅读次数:67
JavaCV推流写音频帧报错:org.bytedeco.javacv.FrameRecorder$Exception: avcodec_encode_audio2() error -12: Could not encode audio packet.
我们在设置推流的音频配置时(详细代码参见JavaCV本地视频流通过帧图片添加文本进行字幕合成),指定原拉流时的音频编码器: // 音频相关配置,取原音频配置 recorder.setSampleRate(grabber.getSampleRate()); System.out.println(gra ...
分类:编程语言   时间:2020-05-22 17:25:53    阅读次数:156
go tip
在有很多的if-then-else语句的情况下,go语言可以写成: package main import ( "fmt" "time" ) func main() { t := time.Now() switch true{ case t.Hour() < 12: fmt.Println("Goo ...
分类:其他好文   时间:2020-05-22 17:22:15    阅读次数:63
Java中对象类型的强制转换
Java中对象类型的强制转换class person{ void f1() { System.out.println("person f1 is calling !"); } void f2() { f1(); }} class student extends person{ void f1() { ...
分类:编程语言   时间:2020-05-22 12:47:07    阅读次数:97
5.21
package ffff; import java.util.Scanner; public interface Shuiguo{ } class Apple implements Shuiguo { public Apple() { System.out.println("创建了一个苹果对象"); ...
分类:其他好文   时间:2020-05-21 12:02:20    阅读次数:59
scala中:_*的使用
1.计算1到4的和 1 def main(args: Array[String]): Unit = { 2 3 val total = sum(1,2,3,4) 4 println(total) 5 6 } 7 8 def sum(args: Int*) = { 9 var result = 0 1 ...
分类:其他好文   时间:2020-05-21 10:17:21    阅读次数:130
go语言自动化运维【02】
go的编程基础 1. go的注释方法 // :单行注释 /* */ :多行注释 例如: package main import "fmt" // func main() { /* fmt.Printf("hello, world\n") } */ func main() { fmt.Println( ...
分类:编程语言   时间:2020-05-20 12:35:56    阅读次数:51
java入坟序章
第四节HelloWroldHelloWorld一般指的是我们学习一门新技术的第一个例子,统称为HelloWorld一、HelloWrold实现步骤1新建文本文档,以HelloWorld.java命名2编辑文本内容publicclassHelloWorld{publicstaticvoidmain(String[]args){System.out.println("HelloWorld!!");}}
分类:编程语言   时间:2020-05-20 09:24:03    阅读次数:41
5792条   上一页 1 ... 37 38 39 40 41 ... 580 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!