This file contains 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 static <R> R executeFunctionWithTimer(Callable<R> f) throws Exception { | |
final Stopwatch timer = Stopwatch.createUnstarted(); | |
timer.start(); | |
R r = f.call(); | |
timer.stop(); | |
LoggerEnabler.logIfEnabled(logger, Level.INFO, timer.toString()); | |
return r; | |
} |
This file contains 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
@Test | |
public void testBigDecimal() throws Exception { | |
final Random random = new Random(); | |
for (int j = 0; j < 100; j++) { | |
long val = random.nextInt(); | |
Timer.executeFunctionWithTimer(() -> { | |
int value = 0; | |
for (int i = 0; i < 1000000; i++) { | |
value = new BigDecimal(val).intValueExact(); | |
} |
This file contains 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
<android.support.v4.widget.DrawerLayout | |
android:id="@+id/drawer_layout" | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<android.support.design.widget.CoordinatorLayout | |
android:id="@+id/main_content" | |
xmlns:android="http://schemas.android.com/apk/res/android" |
This file contains 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
#include<iostream> | |
#include<conio.h> | |
using namespace std; | |
int main() | |
{ | |
int a[20],b[20],d,n,i,j,temp,s,k=0,x=0,t=0; | |
cout<<"vvedite nach znachenie golovki: "; | |
cin>>a[0]; | |
cout<<"vvedite kolichestvo processov:"; | |
cin>>n; |
This file contains 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
#include <iostream> | |
#include<conio.h> | |
#include<math.h> | |
using namespace std; | |
int main() | |
{ | |
int a[10],b,n,c=0; | |
int i=0; | |
cout<<"vvedite nach znachenie golovki:"; |
This file contains 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
1 aaaan | |
1 aan | |
1 ab | |
1 abaddnew | |
1 abstract | |
1 abstractrequest | |
1 act | |
1 addressid | |
1 ae | |
1 against |
This file contains 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
1 | | |
1 aasawodli | |
1 abstractrequest | |
1 access | |
1 act | |
1 ae | |
1 afanalyzer | |
1 ago | |
1 ahybsifeo | |
1 air |
This file contains 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
написать | |
решение | |
a | |
вижу | |
class | |
поэтому | |
работать | |
+ | |
джаве | |
new |
This file contains 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
пример | |
проблемы | |
типа | |
решение | |
делать | |
например | |
проект | |
проект | |
кстати | |
стоит |
This file contains 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
а | |
в | |
г | |
е | |
ж | |
и | |
к | |
м | |
о | |
с |