Search:

Type: Posts; User: JBow94

Search: Search took 0.27 seconds.

  1. Re: Suddenly getting "Too Many Open File" error

    You keep declaring a new Socket.
  2. Re: Reading in entire contents of text file to one string

    I'd suggest using the Scanner and StringBuilder classes.
  3. Re: It's not printing out the correct percentage...

    Never-mind I got it to work:

    I had to add:
    System.out.printf("A: == (%1$1.0f%%)\r\n", ((float) countBase(
    getSequence(fastaFile), 'A') / totalCount) * 100);
  4. It's not printing out the correct percentage...

    public static void main(String[] args) {
    getFile();

    if (fastaFile != null) {
    totalCount = countBase(getSequence(fastaFile), 'A')
    + countBase(getSequence(fastaFile), 'G')
    +...
  5. Re: How to merge an int array then put it in ascending order without any Java APIs

    Thanks for the replies! I will check into those.

    To provide more insight on the thread, the numbers aren't in any order. What the function merge is supposed to do is:

    combine both arrays into...
  6. How to merge an int array then put it in ascending order without any Java APIs

    This is what I have:

    package challengespackage;

    public class ArrayMerge {

    public static void main(String[] args) {
    System.out.print(merge(new int[] { 9, 3, 0 }, new int[] { 4, 7, 8 }));...
Results 1 to 6 of 6