java stackover

Solutions on MaxInterview for java stackover by the best coders in the world

showing results for - "java stackover"
Valentina
05 Aug 2018
1class someClass{
2	public static void main(string[] args){
3      //calling the loop method
4    	loop();
5    }
6  	/*basicly calling the loop method in the loop method
7    * that is a way to get a nice stackoverflow
8    * your welcome
9    */
10  	public static void loop(){
11    	loop();
12    }
13}
14//or
15class someOtherClass{
16	public static void main(string[] args){    
17     //basicly a never ending loop that has no delay
18     while(true){
19     	Systen.out.println("STACKOVERFLOW");
20     }
21   }
22}
23//or
24class someOtherOtherClass{
25	public static void main(string[] args){
26     //basicly another never ending loop that has no delay
27     for (i = 1; i > 0; i++){
28     	Systen.out.println("STACKOVERFLOW AGAIN");
29     }
30   }
31}
Hanna
11 Mar 2017
1public class RecordDialog extends AppCompatDialogFragment {
2@NonNull
3@Override
4public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
5    AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
6    builder.setTitle("Recording...")
7            .setIcon(R.drawable.ic_record)
8            .setPositiveButton ("Stop", new DialogInterface.OnClickListener() {
9                @Override
10                public void onClick(DialogInterface dialog, int which) {
11
12                }
13            });
14
15
16    return builder.create();
17}
18