Skip to content

Instantly share code, notes, and snippets.

import java.util.Arrays; //исключительно для быстрого вывода результата
public class HelloWorld{
public static void main(String []args){
// Call task 1
int testNumber = 100;
System.out.println("Task1 v1: " + checkBinaryOne(testNumber));
import java.util.Arrays; //исключительно для быстрого вывода результата
public class HelloWorld{
public static void main(String []args){
// Call task 1
int testNumber = 100;
System.out.println("Task1 v1: " + checkBinaryOne(testNumber));
import java.util.Arrays; //исключительно для быстрого вывода результата
public class HelloWorld{
public static void main(String []args){
// Call task 1
System.out.println("Task1: " + checkBinaryOne(100));
// Call task 2
public class HelloWorld{
public static void main(String []args){
// Call task 1
checkBinaryOne(5);
// Call task 2
reverseArray(int[] {1,2,3})
}
@Multipart
@POST("test/register")
Call<Result> registration(
@Part("email") String email,
@Part("password") String password,
@Part("firstname") String firstName,
@Part("lastname") String lastName,
@Part("gender") String gender,
@Part("birthday") String birthday,
@Part MultipartBody.Part filePart
Request URL:https://51.255.193.76/test/register
Request Method:POST
Status Code:200 OK
Provisional headers are shown
Accept-Encoding:gzip
Connection:Keep-Alive
Content-Length:1475
Content-Type:multipart/form-data; boundary=f51105ea-3c3c-466d-85cf-c209b831e9ce
Host:51.255.193.76
User-Agent:okhttp/3.8.0
@Sharabaddin
Sharabaddin / ANDROID LOGCAT WARNING
Last active November 1, 2017 17:53
ANDROID WARNING CAPP_TOUCH_FLICK
W/TouchFlickNoti: CAPP_TOUCH_FLICK: UP vectorVelocity:0 signal:0
10-16 16:30:21.094 12741-12741/com.sharabaddin.aprivate.automaticvoicerecorderrefactor I/ActivityManager: Timeline: Activity_idle id: android.os.BinderProxy@41e49f08 time:66818500
10-16 16:30:22.604 12741-12741/com.sharabaddin.aprivate.automaticvoicerecorderrefactor I/ActivityManager: Timeline: Activity_idle id: android.os.BinderProxy@41e49f08 time:66820012
10-16 16:30:23.434 12741-12750/com.sharabaddin.aprivate.automaticvoicerecorderrefactor W/MediaPlayer-JNI: MediaPlayer finalized without being released
10-16 16:30:23.434 12741-12750/com.sharabaddin.aprivate.automaticvoicerecorderrefactor V/MediaPlayer[Native]: setListener
10-16 16:30:23.434 12741-12750/com.sharabaddin.aprivate.automaticvoicerecorderrefactor V/MediaPlayer[Native]: disconnect
10-16 16:30:23.444 12741-12741/com.sharabaddin.aprivate.automaticvoicerecorderrefactor D/dalvikvm: GC_FOR_ALLOC freed 582K, 9% free 7845K/8596K, paused 42ms, total 53ms
10-16 16:30:23.444 12741-12750/com.sharabaddin.aprivate.automaticvoicerecorderrefactor V/MediaPlayer[
/usr/lib/jvm/jdk1.8.0_112/bin/java -ea -Didea.test.cyclic.buffer.size=1048576 -javaagent:/usr/bin/idea-IU-171.3780.52/lib/idea_rt.jar=46374:/usr/bin/idea-IU-171.3780.52/bin -Dfile.encoding=UTF-8 -classpath /usr/bin/idea-IU-171.3780.52/lib/idea_rt.jar:/usr/bin/idea-IU-171.3780.52/plugins/junit/lib/junit-rt.jar:/usr/lib/jvm/jdk1.8.0_112/jre/lib/charsets.jar:/usr/lib/jvm/jdk1.8.0_112/jre/lib/deploy.jar:/usr/lib/jvm/jdk1.8.0_112/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/jdk1.8.0_112/jre/lib/ext/dnsns.jar:/usr/lib/jvm/jdk1.8.0_112/jre/lib/ext/jaccess.jar:/usr/lib/jvm/jdk1.8.0_112/jre/lib/ext/jfxrt.jar:/usr/lib/jvm/jdk1.8.0_112/jre/lib/ext/localedata.jar:/usr/lib/jvm/jdk1.8.0_112/jre/lib/ext/nashorn.jar:/usr/lib/jvm/jdk1.8.0_112/jre/lib/ext/sunec.jar:/usr/lib/jvm/jdk1.8.0_112/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/jdk1.8.0_112/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/jdk1.8.0_112/jre/lib/ext/zipfs.jar:/usr/lib/jvm/jdk1.8.0_112/jre/lib/javaws.jar:/usr/lib/jvm/jdk1.8.0_112/jre/lib/jce.jar:/usr/lib/jvm/jdk1.8.0_112/jr
package com.sharabaddin;
public class App {
public static int index = 0;
public static void main(String[] args) {
int[] array = {1, 2, 3, 4};
System.out.println(myBinarySearch(array, 3)); //return 2
}