
Java
wx:sddzlsc
擅长小程序开发、网站建设、app开发,微信:sddzlsc
展开
-
3.Java(初级)编程教程(油管 thenewboston)学习笔记计算器
package shoucong; import java.util.Scanner; public class apples { public static void main(String args[]) { Scanner buckey=new Scanner(System.in); double fnum,snum,answer; System.out.println("Enter first num: "); fnum = buckey.nextDouble(); System.o.原创 2020-12-06 20:13:42 · 171 阅读 · 0 评论 -
2.Java(初级)编程教程(油管 thenewboston)学习笔记变量
package shoucong; import java.util.Scanner; public class apples { public static void main(String args[]) { double tuna; tuna =5.29; System.out.print("I want "); System.out.print(tuna); System.out.println(" movies"); System.out.print("apples".原创 2020-12-06 20:03:03 · 164 阅读 · 0 评论 -
1.Java(初级)编程教程(油管 thenewboston)学习笔记get user input
package shoucong; import java.util.Scanner; public class apples { public static void main(String args[]) { Scanner buckey = new Scanner(System.in); System.out.println(buckey.nextLine()); } } Java中Scanner类中的方法next()和nextLi...原创 2020-12-06 19:58:47 · 486 阅读 · 0 评论