计算机英语讲课笔记(2020-6-23)

Use it or lose it.

用进废退。

Translation Exercise:

墨写的谎言,无法掩盖血染的事实。

list the keywords: ink, write (wrote, written), lie, cannot(can’t, unable to), cover up, blood, dye, fact

build a sentence: The lie written in ink cannot cover up the fact dyed by the blood.

鲁迅:真的猛士,敢于直面惨淡的人生,敢于正视淋漓的鲜血。这是怎样的哀痛者和幸福者?然而造化又常常为庸人设计,以时间的流驶,来洗涤旧迹,仅使留下淡红的血色和微漠的悲哀。在这淡红的血色和微漠的悲哀中,又给人暂得偷生,维持着这似人非人的世界。我不知道这样的世界何时是一个尽头!

Lu Xun: True fighters dare face dismal life and dripping blood. What grief and joy are theirs! But the Creator often designs the world for mediocre people, washes old traces away with the elapse of time to leave only pale-red bloodstains and faint grief, and lets men lead ignoble lives amid these to maintain this inhuman world. I don’t know when such a world will come to an end!

We will use the online Java editor to write a simple Java program.

public class SplitLine {
    public static void main(String []args) {
        String line = "I love Java programming very much";
        String[] words = line.split(" ");
        System.out.println("There are " + words.length + " words.");	
    }
}

Run the program and the result is as folllows:

There are 6 words.

扫描二维码关注公众号,回复: 11632108 查看本文章

describe - description

We cannot describe her beauty with proper words.
Her beauty defies any description.

  1. Just now I created a Java class named SplitLine.
  2. In the class there is a main method as the entrance of the program, which means the program cannot be executed without a main method.
  3. The first statement defines a String variable named line, and assigns a String constant to the variable. This work can be called the variable initialization.
  4. In the second satement, we call the split method of the variable line, pay attention that the method needs a space as the parameter, and then assign the result to the String array named words.

猜你喜欢

转载自blog.csdn.net/howard2005/article/details/106916702
今日推荐