public class StringPrograms { public static void main(String[] args) { String str = "123"; System.out.println(reverse(str)); }
public static String reverse(String in) { if (in == null) throw new IllegalArgumentException("Null is not valid input"); StringBuilder out = new StringBuilder(); char[] chars = in.toCharArray(); for (int i = chars.length - 1; i >= 0; i--) out.append(chars[i]); return out.toString(); }
public class StringPrograms { public static void main(String[] args) { String str = "123"; System.out.println(reverse(str)); }
public static String reverse(String in) { if (in == null) throw new IllegalArgumentException("Null is not valid input"); StringBuilder out = new StringBuilder(); char[] chars = in.toCharArray(); for (int i = chars.length - 1; i >= 0; i--) out.append(chars[i]); return out.toString(); }
}
#собеседование
BY JavaRocks
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
The messaging service and social-media platform owes creditors roughly $700 million by the end of April, according to people briefed on the company’s plans and loan documents viewed by The Wall Street Journal. At the same time, Telegram Group Inc. must cover rising equipment and bandwidth expenses because of its rapid growth, despite going years without attempting to generate revenue.
Telegram Gives Up On Crypto Blockchain Project
Durov said on his Telegram channel today that the two and a half year blockchain and crypto project has been put to sleep. Ironically, after leaving Russia because the government wanted his encryption keys to his social media firm, Durov’s cryptocurrency idea lost steam because of a U.S. court. “The technology we created allowed for an open, free, decentralized exchange of value and ideas. TON had the potential to revolutionize how people store and transfer funds and information,” he wrote on his channel. “Unfortunately, a U.S. court stopped TON from happening.”