This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Test : AppCompatActivity() { | |
val REST_CONSUMER_KEY = "8d869c4575c458ebbd29180639fce2f9" | |
val REST_CONSUMER_SECRET = "ef72f50d0044f87a646b70fcdc5986b7b968682c31d194f7621ae0ce0ad1644c" | |
val REST_CALLBACK_URL = "https://aeshvetsov.com" | |
val service = ServiceBuilder(REST_CONSUMER_KEY) | |
.apiSecret(REST_CONSUMER_SECRET) | |
.callback("https://aeshvetsov.com") | |
.httpClientConfig(OkHttpHttpClientConfig.defaultConfig()) | |
.withScope("read,write") | |
.build(TrelloApi.instance()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Test25 { | |
public static void main(String[] args) { | |
int[] in = {0, 8, 9, 0, 0, 0, 0, 0, 3, 0, 4, 5}; | |
Test25 test = new Test25(); | |
test.change(in); | |
} | |
public void change(int[] in) { | |
int index = 0; | |
for (int i = 1; i < in.length; i++) { | |
if (in[i] == 0 && index == 0) { |