expected在java中是什么意思
发布时间:2025-05-22 09:00:39 发布人:远客网络
一、expected在java中是什么意思
expected在英语中是预料预期的意思,如果在JAVA编程中出现则表示在字符串中输入了换行符。编译器就会报错:Line nn:';' expected
处理方法:将字符串拆分为两个,确保字符串中都没有新行,并将它们与+连接起来就可以了。
expected英[ɪkˈspektɪd]美[ɪkˈspektɪd]
v.预料;预期;预计;等待;期待;盼望;要求;指望;
[词典] expect的过去分词和过去式;
2、It may be that you will feel the exact opposite of what you expected.
可能你的感觉将和你的期盼刚好相反。
3、Scientists have collected more data than expected.
科学家们已经收集到了比预期更多的数据。
1、表示期待,期望,通常为及物动词,不要受汉语影响在其后误加介词for。如:
我们不能期望一夜之间就取得成功。
如:We should not expect success overnight.
2、后接动词时要用不定式,不用动名词。如:
I did not expect to find you here.我没料到在这里碰到你。
若语义需要,其后还可接不定式的复合结构。
如:He expected her to go with him.他期望她同他一起去。
3、不要认为 expect只表示;期待;期望,它还可表示;预计;预料等。如:
I expect a storm.我预计会有场暴风雨来。
I expect that I will be back on Sunday.我预计星期日回来。
如:He expects to fail the exam.他预料无法通过考试。
另外,注意expect a baby这一惯用表达,其意为;怀孕。如:
It is public knowledge she is expecting a baby.大家都知道她已怀孕了。
4、其后可接 that从句,若从句谓语为否定,注意否定的转移。如:
I don't expect that he has done such a thing.我预料他不会干出这种事来。
在口语中有可表示;想或;揣想。如:
I expect you are tired.我想你是累了吧。
二、在JAVA编程中“;”expected是什么意思
expected在英语中是预料预期的意思,如果在JAVA编程中出现则表示在字符串中输入了换行符。编译器就会报错:Line nn:';' expected
处理方法:将字符串拆分为两个,确保字符串中都没有新行,并将它们与+连接起来就可以了。
expected英[ɪkˈspektɪd]美[ɪkˈspektɪd]
v.预料;预期;预计;等待;期待;盼望;要求;指望;
[词典] expect的过去分词和过去式;
2、It may be that you will feel the exact opposite of what you expected.
可能你的感觉将和你的期盼刚好相反。
3、Scientists have collected more data than expected.
科学家们已经收集到了比预期更多的数据。
1、表示期待,期望,通常为及物动词,不要受汉语影响在其后误加介词for。如:
我们不能期望一夜之间就取得成功。
如:We should not expect success overnight.
2、后接动词时要用不定式,不用动名词。如:
I did not expect to find you here.我没料到在这里碰到你。
若语义需要,其后还可接不定式的复合结构。
如:He expected her to go with him.他期望她同他一起去。
3、不要认为 expect只表示;期待;期望,它还可表示;预计;预料等。如:
I expect a storm.我预计会有场暴风雨来。
I expect that I will be back on Sunday.我预计星期日回来。
如:He expects to fail the exam.他预料无法通过考试。
另外,注意expect a baby这一惯用表达,其意为;怀孕。如:
It is public knowledge she is expecting a baby.大家都知道她已怀孕了。
4、其后可接 that从句,若从句谓语为否定,注意否定的转移。如:
I don't expect that he has done such a thing.我预料他不会干出这种事来。
在口语中有可表示;想或;揣想。如:
I expect you are tired.我想你是累了吧。
三、expected有什么意思,在java中。
expected在英语中是预料预期的意思,如果在JAVA编程中出现则表示在字符串中输入了换行符。编译器就会报错:Line nn:';' expected
处理方法:将字符串拆分为两个,确保字符串中都没有新行,并将它们与+连接起来就可以了。
expected英[ɪkˈspektɪd]美[ɪkˈspektɪd]
v.预料;预期;预计;等待;期待;盼望;要求;指望;
[词典] expect的过去分词和过去式;
2、It may be that you will feel the exact opposite of what you expected.
可能你的感觉将和你的期盼刚好相反。
3、Scientists have collected more data than expected.
科学家们已经收集到了比预期更多的数据。
1、表示期待,期望,通常为及物动词,不要受汉语影响在其后误加介词for。如:
我们不能期望一夜之间就取得成功。
如:We should not expect success overnight.
2、后接动词时要用不定式,不用动名词。如:
I did not expect to find you here.我没料到在这里碰到你。
若语义需要,其后还可接不定式的复合结构。
如:He expected her to go with him.他期望她同他一起去。
3、不要认为 expect只表示;期待;期望,它还可表示;预计;预料等。如:
I expect a storm.我预计会有场暴风雨来。
I expect that I will be back on Sunday.我预计星期日回来。
如:He expects to fail the exam.他预料无法通过考试。
另外,注意expect a baby这一惯用表达,其意为;怀孕。如:
It is public knowledge she is expecting a baby.大家都知道她已怀孕了。
4、其后可接 that从句,若从句谓语为否定,注意否定的转移。如:
I don't expect that he has done such a thing.我预料他不会干出这种事来。
在口语中有可表示;想或;揣想。如:
I expect you are tired.我想你是累了吧。