Here is a small code snippets for displaying famous charactor circle on the console.... you may enjoy it!!!
private String circle() {
if ((System.currentTimeMillis() - startTime) < 100) {
startTime = System.currentTimeMillis();
return "\r" + current + "\t";
}
if (current == '|') {
current = '/';
} else if (current == '/') {
current = '-';
} else if (current == '-') {
current = '\\';
} else {
current = '|';
}
return "\r" + current + "\t";
}
Subscribe to:
Post Comments (Atom)
Beyond Toughness: Why Your Car's Brain Needs AEC-Q100 AND ASIL-B
AEC-Q100 vs. ASIL-B: Quality Meets Safety In the era of autonomous driving and electric vehicles, the electron...
-
This will create a certification file and send to free certification authority " https://certbot.eff.org " sponsored by linux foun...
-
Annual Technical Conference 2006 of IET-YMS Sri Lanka, 16 th October 2010 Department of Electrical and Information Engineering, University ...
-
Installing MPICH2 parallel computing from package manager or Ubuntu software center, will need lot configurations of available real processo...
No comments:
Post a Comment