Search Result

Collapse
2 results in 0.0013 seconds.
Keywords
Members
Tags
scanner
  •  

  • mohamad mahtabi
    started a topic How to scan booleans from a string?
    in Java

    How to scan booleans from a string?

    I wrote this program and I want to read a binary String and write each 0 or 1 to a Boolean array.
    but I don't know why the program encounters a problem when I want to scan from String.
    Code:
    String String1;
    Boolean[] Num1 = new Boolean[32];
    int count1;
    Scanner in = new Scanner(System.in);
    String1 = in.next();
    Scanner inString1 = new Scanner(String1);
    for(count1 = 0;inString1.hasNextBoolean();count1++)
    ...
    See more | Go to post

  • Steel546
    started a topic Student programmer - need help :(
    in Java

    Student programmer - need help :(

    Let me begin, I am a college student in a basic programming class and I honestly have a tough time learning Java. I'm here because I have a lab I'm trying to do and it's like I have a hard time filling in the blanks because our teachers don't teach us, they just say "go". So, any offering help is much obliged.

    My lab link is located http://www.cse.unt.edu/~ecelikel/spr...ments/lab4.doc. It's a...
    See more | Go to post
    Last edited by JosAH; Mar 10 '09, 06:58 AM. Reason: fixed the [code] ... [/code] tags and removed the bold attribute
Working...