Skip to content

Instantly share code, notes, and snippets.

@lion137
Last active June 5, 2017 08:55
Show Gist options
  • Select an option

  • Save lion137/d4e674e86271bbdca55e78b74338944e to your computer and use it in GitHub Desktop.

Select an option

Save lion137/d4e674e86271bbdca55e78b74338944e to your computer and use it in GitHub Desktop.
return statement problem java
public BigInteger evaluateParseTreeBigInt(BinaryTree tree){
BinaryTree<T> leftT = tree.left;
BinaryTree<T> righT = tree.right;
boolean p = (leftT != null) && (righT != null);
if (p){
//cos tam, return jakis bigint
}
else return //jakis biginteger
}//IntelliJ IDEA sie pluje, ze brakuje return statemnt, sugeruje po else, ale to rozwala cala logike
// tej metody, da sie to sprawdzenie jakos zablokowac w javie?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment