language: Java (sun-jdk-1.6.0.31)
date: 100 days 21 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import java.util.*;
 
class StringArrayTest
{
  public static void main(String [] args)
  {
 
    Scanner scan = new Scanner(System.in);
 
    String[] lolArray = new String[6];
 
    lolArray[0] = scan.nextLine();
    lolArray[1] = scan.nextLine();
    lolArray[4] = "Dylan is watching me";
 
 
    for (int index = 0 ; index < lolArray.length ; index++ )
    {
      if (lolArray[index] != (null) )
       {
         System.out.println(lolArray[index]);
       }
      else
       {
         System.out.println("There is nothing.");
       }
    }
 
  }
}
  • upload with new input
  • result: Success     time: 0.1s    memory: 212864 kB     returned value: 0

    stuff goes here
    that isn't computer repair
    stuff goes here
    that isn't computer repair
    There is nothing.
    There is nothing.
    Dylan is watching me
    There is nothing.