This file contains hidden or 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
| List myList = new ArrayList(); | |
| list.add("Hello"); | |
| list.add("World"); | |
| ListIterator li = list.listIterator(); | |
| while (li.hasNext()) | |
| { | |
| System.out.println((String)li.next()); | |
| } |
This file contains hidden or 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
| // Initialize array to 99, way more than we will ever need | |
| OrderItem[] orderItemArr = new OrderItem[99]; |
This file contains hidden or 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
| oWord.PrintOut(ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, | |
| ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, | |
| ref oMissing, ref oMissing, ref oMissing, ref oMissing, | |
| ref oMissing, ref oMissing, ref oMissing); |
This file contains hidden or 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
| var recording; | |
| var outString = ''; | |
| $(document).keyup(function(event) { | |
| if (event.keyCode == 192) | |
| { | |
| recording = true; | |
| } | |
| else if (recording) | |
| { |
This file contains hidden or 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 void function1 () | |
| { | |
| int x; | |
| int y; | |
| x,y = function2(); | |
| } | |
| private int function2() | |
| { |
This file contains hidden or 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 void function1 () | |
| { | |
| int[] x = { 0, 2, 4 }; | |
| a,b,c = x; | |
| } |
This file contains hidden or 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 Boolean compareLists(List<String> list1, List<String> list2) | |
| { | |
| foreach (String x in list1) | |
| { | |
| foreach (String y in list2) | |
| { | |
| if (String.Equals(x,y)) | |
| return true; | |
| } | |
| } |
This file contains hidden or 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
| for result in query: | |
| feed = feedparser.parse(result.ghfeed) | |
| for entry in feed.entries: | |
| if dt.fromtimestamp(mktime(entry.published_parsed)) > result.lastrefresh: | |
| self.response.out.write(entry.title) | |
| self.response.out.write('\r\n') | |
This file contains hidden or 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 |
This file contains hidden or 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 |