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 class RegistrationBackstackChangeListener implements FragmentManager.OnBackStackChangedListener { | |
private final Activity mActivity; | |
public RegistrationBackstackChangeListener(Activity activity){ | |
mActivity = activity; | |
} | |
@Override | |
public void onBackStackChanged() { |
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 String getIndex(int index) { | |
LinkedListNode nodeAtIndex = head; | |
for(int i = 0; i < index; i++){ | |
nodeAtIndex = nodeAtIndex.getNext(); | |
} | |
return nodeAtIndex.getValue(); | |
} |
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
String[] stringArr = new String[3]; | |
for(int i = 0; i < 3; i++){ | |
stringArr[i] = new String("The number " + i); | |
} |
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
//My Activity | |
@Override | |
protected void onStart() { | |
super.onStart(); | |
commentInput.addTextChangedListener(new OnCommentTextChangeListener(fragment)); | |
} | |
//My Adapter | |
@Override |
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(int i = 0; i < 100; i++) { | |
String output = ""; | |
if(i % 3 == 0) { | |
output += "Foo"; | |
} | |
if(i % 5 == 0) { | |
output += "Bar"; | |
} | |
if(output.equals("")) { | |
output += i; |
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 class NumberOneClassEU { | |
public void lookHereZyron(String param) { | |
String i = doSomething(param); | |
if("Super cool".equals(param)) { | |
executeSqlCommandA(i); | |
} | |
if("NOWAI".equals(param)) { | |
executeSqlCommandB(i); | |
} |
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 runSqlCode(String paramString) { | |
runSqlCode(paramString, null); | |
} | |
public void runSqlCode(String paramString, String where) { | |
String sqlQuery = "select %s from " + paramString; | |
if(where != null) { | |
sqlQuery += " where " + where; | |
} | |
SQL.execute(sqlQuery); |