【纯属逗逼】致2017找工作的你!
package leetcode;
/**
* @date 2016年8月31日
*/
public class Offer {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Offer o = new Offer();
o.offerIMissU();
}
public void offerIMissU(){
int luck = 10;
int confidence = 10;
boolean hasOffer = false;
while(!hasOffer){
findOffer();
luck--;
confidence--;
if(confidence <6){
System.out.println("wtf!!!!!!!!!!!");
findNotGoodOffer();
confidence+=2;
}
if(luck==0&&confidence>=6){
findMyDreamJob();
hasOffer = true;
}
}
}
/**
*
*/
private void findMyDreamJob() {
System.out.println("After rain comes fair weather.The longest night will have an end.");
}
/**
*
*/
private void findNotGoodOffer() {
System.out.println("yep!I get it,but not so good!");
}
/**
*
*/
private void findOffer() {
System.out.println("I am trying to seek a job!!");
}
}
哈哈哈。随便玩玩。祝大家最后都能拿到满意的offer。
腾讯公司福利 1143人发布
查看13道真题和解析