User Profile

Collapse

Profile Sidebar

Collapse
noideanoclue
noideanoclue
Last Activity: Aug 15 '07, 09:29 PM
Joined: Jul 20 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • noideanoclue
    started a topic getting chararrays
    in Java

    getting chararrays

    I have written a method which is supposed to get a string from the console and turn it into a char array, but it only returns gibberish, I can't see the problem either.
    Code:
        public static char[] readchararray()
        {
            BufferedReader dataIn = new BufferedReader( new InputStreamReader(System.in));
            String temp = "";
            int length = 1;
            char[] tempchar = new char[1];
    ...
    See more | Go to post

  • noideanoclue
    replied to Int to char Array
    in Java
    I don't know if I'm just not getting it, or I asked the wrong question but what I want to do is take a pre-existing character array, and store a series of integers into it.
    See more | Go to post

    Leave a comment:


  • noideanoclue
    started a topic Int to char Array
    in Java

    Int to char Array

    I was wondering how to take an integer and store it into a char array, if anyone could tell me that would be great.
    See more | Go to post

  • noideanoclue
    replied to IF loop error?
    in Java
    Thanks for the help, it fixed the problem.
    See more | Go to post

    Leave a comment:


  • noideanoclue
    started a topic IF loop error?
    in Java

    IF loop error?

    I am writing a Battleship 'Game' in Java as part of familiarizing myself with the language, but have run into a problem which I can't solve, for some inexplicable reason one of my if loops isn't working as it should, I have no idea what the problem is and would appreciate some help.

    Code:
     
    while (y == 1)
    {
    System.out.println(" ");
    System.out.print("Do you want to set the battleship to North, South,
    ...
    See more | Go to post
No activity results to display
Show More
Working...