Guest User

Untitled

a guest
Apr 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. public class MainActivity extends AppCompatActivity {
  2. TextView tt;
  3. @Override
  4. protected void onCreate(Bundle savedInstanceState) {
  5. super.onCreate(savedInstanceState);
  6. setContentView(R.layout.activity_main);
  7. tt = (TextView)findViewById(R.id.dd);
  8. int k=0;
  9. for(int i=0; i<9999; i++)
  10. for(int j=0; j<10000; j++)
  11. for(int jj=0; jj<100; jj++)
  12. k=i*j*j;
  13. tt.setText("OUT");
  14. }
  15. }
  16.  
  17. <?xml version="1.0" encoding="utf-8"?>
  18. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  19. xmlns:app="http://schemas.android.com/apk/res-auto"
  20. xmlns:tools="http://schemas.android.com/tools"
  21. android:layout_width="match_parent"
  22. android:layout_height="match_parent"
  23. tools:context=".MainActivity">
  24. <TextView
  25. android:id="@+id/dd"
  26. android:layout_width="match_parent"
  27. android:layout_height="match_parent"
  28. android:text="Hello World!" />
  29. </LinearLayout>
Add Comment
Please, Sign In to add comment