计算机英语讲课笔记(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.

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.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

howard2005

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值