Commit 66614238 authored by william.leather's avatar william.leather

Replace ResitCode.java

parent 1f5e804b
import java.util.ArrayList; // import the ArrayList class
public class ResitCode {
public int Fib_No(int position) {
}
public String pigLatin(String message)
{
}
}
import java.util.ArrayList; // import the ArrayList class
import java.util.List;
public class ResitCode {
public static int Fib_No(int position) {
List<Integer> array = new ArrayList<>();
array.add(1);
array.add(2);
for (int i = 0; i >= array.size(); i++)
{
System.out.println(array.get(-1));
}
return position;
}
public String pigLatin(String message)
{
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment