摘要: 第一章 1.所有的编程语言的最终目的都是提供一种“抽象”方法。抽象的层次越高,越接近人的思维。越接近人的思维,越容易使用。 2.越高级的语言越容易学习;当然,这只意味着容易入门;不意味着成为高手越容易,高手仍然需要修炼。 3.Java的核心优势:跨平台。跨平台是靠JVM(虚拟机)实现的。 4.Jav 阅读全文
posted @ 2019-08-01 00:37 乱世有歌舞 阅读(81) 评论(0) 推荐(0) 编辑
摘要: Day 5: Loops 给一个整数,打印他的十个倍数,每个倍数需要单独开启一个新行,格式:n x i = result. Sample Input 2 Sample Input Sample Input 2 2 Sample Output 2 x 1 = 2 2 x 2 = 4 2 x 3 = 6 阅读全文
posted @ 2019-07-25 16:02 乱世有歌舞 阅读(106) 评论(0) 推荐(0) 编辑
摘要: Day 4: Class vs. Instance Task Write a Person class with an instance variable, age, and a constructor that takes an integer, initialAge, as a paramete 阅读全文
posted @ 2019-07-23 10:25 乱世有歌舞 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1、Higher Than 75 Marks Query the Name of any student in STUDENTS who scored higher than 75 Marks. Order your output by the last three charactersof eac 阅读全文
posted @ 2019-07-22 12:19 乱世有歌舞 阅读(233) 评论(0) 推荐(0) 编辑
摘要: Day 3: Intro to Conditional Statements 阅读全文
posted @ 2019-07-22 12:11 乱世有歌舞 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Day 2: Operators Task Given the meal price (base cost of a meal), tip percent (the percentage of the meal price being added as tip), and tax percent(t 阅读全文
posted @ 2019-07-21 19:33 乱世有歌舞 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Day 1: Data Types 阅读全文
posted @ 2019-07-21 19:31 乱世有歌舞 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Sock Merchant Function Description Complete the sockMerchant function in the editor below. It must return an integer representing the number of matchi 阅读全文
posted @ 2019-07-20 14:42 乱世有歌舞 阅读(258) 评论(0) 推荐(0) 编辑
摘要: function main() { let r = readLine(); const PI = Math.PI; // Print the area of the circle: let area; area = PI * r * r console.log(area); // Print the perimeter of the ci... 阅读全文
posted @ 2019-07-20 11:38 乱世有歌舞 阅读(82) 评论(0) 推荐(0) 编辑
摘要: /* * Create the function factorial here */ function factorial(n) { return (n >= 1 && n <= 10) ? n * factorial(n - 1) : 1; } 阅读全文
posted @ 2019-07-20 11:27 乱世有歌舞 阅读(130) 评论(0) 推荐(0) 编辑