User Profile

Collapse

Profile Sidebar

Collapse
JavaStudent07
JavaStudent07
Last Activity: Apr 26 '07, 03:08 PM
Joined: Jan 19 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • small question on conversion from an integer to ASCII code

    I have a list, I need to print it out in characters as a "Secret Message" :) this is the list, have any ideas on the conversion methods from the numbers to ASCII code format for me?

    [PHP]67 79 77 80 85 84 69 82 83 32 34 82 69 32 70 85 78 32 33[/PHP]

    Thanks in advance,
    Steve
    See more | Go to post
    Last edited by JavaStudent07; Apr 25 '07, 03:34 PM. Reason: looked bad

  • JavaStudent07
    started a topic just a simple question on conversions
    in Java

    just a simple question on conversions

    I know how to change a string to an integer, but is there in fact a reverse to this process? (turning an integer into a string that is)

    If you know or have a solution I would be very grateful.

    Thank you,
    Steve
    See more | Go to post

  • JavaStudent07
    replied to Issue with loop in my code
    in Java
    no i dont sorry
    See more | Go to post

    Leave a comment:


  • any amount of lines, any amount of numbers per line. The teacher is letting us hang out to dry on the actual coding for this project. Sorry if I dont know terminology that you use
    See more | Go to post

    Leave a comment:


  • 67 34 5 6 23 12
    56 100 97 97 85
    78 67 90
    452 78 345 67 888 78


    ^^^^^^
    that is the actual inputted data file that i need to assign each line to an array
    See more | Go to post

    Leave a comment:


  • Code:
    public class BubbleSort2
    {
    public static void main (String args[]) throws Exception
    {
    String filage="";
    String Data="";
    
    BufferedReader inWords=new BufferedReader(new InputStreamReader(System.in));
    System.out.println("Please input the name of the file from which the data will be acquired.  Be sure to use the entire path.");
    filage=inWords.readLine();
    ...
    See more | Go to post

    Leave a comment:


  • JavaStudent07
    replied to Issue with loop in my code
    in Java
    i'm sorry, could you integrate it into my code or some other code for an example of actual coding, I'm not sure based on what you said, thats all new stuff to me...i'm sorry for the inconvenience

    Steve
    See more | Go to post

    Leave a comment:


  • assigning to an array
    See more | Go to post

    Leave a comment:


  • JavaStudent07
    started a topic How do i read text file lines into an array
    in Java

    How do i read text file lines into an array

    I am importing a data file to a sorting method and need to know how to take each line of the imported data and set it equal to an array.

    EX.
    1.) 2 3 4 5
    2.) 3 6 2 6
    3.) 9 2 5 6

    i want NumberArray[0]==2 3 4 5 and NumberArray[1]==3 6 2 6, etc etc. I think I can work it out if I can get some direction on that.
    See more | Go to post

  • JavaStudent07
    replied to Issue with loop in my code
    in Java
    sorry, I dont follow. I just want to fill an array with each subscript being a different line of the test values

    EX.
    1.) 2 3 4 5
    2.) 3 6 2 6
    3.) 9 2 5 6

    i want NumberArray[0]==2 3 4 5 and NumberArray[1]==3 6 2 6, etc etc. I think I can work it out if I can get some direction on that.
    See more | Go to post

    Leave a comment:


  • JavaStudent07
    replied to Issue with loop in my code
    in Java
    Code:
    public static void main (String args[]) throws Exception
    {
    String filage="";
    
    BufferedReader inWords=new BufferedReader(new InputStreamReader(System.in));
    System.out.println("Please input the name of the file from which the data will be acquired.  Be sure to use the entire path.");
    
    
    while((filage=inWords.readLine())!=null)
    {
    Sort(filage);
    }
    ...
    See more | Go to post

    Leave a comment:


  • JavaStudent07
    replied to Issue with loop in my code
    in Java
    I want them to find the data file inputted at the command prompt and run the program for each line with the while statement
    See more | Go to post

    Leave a comment:


  • JavaStudent07
    replied to Issue with loop in my code
    in Java
    I was wondering if you coult do the "String Data=inData.rea dLine(Counter); " to read each line and just bump it up but it said it couldn't resolve the symbol, I pretty much am out of guesses at this point.
    See more | Go to post

    Leave a comment:


  • JavaStudent07
    replied to Issue with loop in my code
    in Java
    Code:
    /*
    Steve Glasser
    January 6,2007
    BubbleSort
    */
    
    import java.io.*;
    import java.util.*;
    
    public class BubbleSort2
    {
    public static void main (String args[]) throws Exception
    {
    String filage="";
    String linetext;
    
    BufferedReader inWords=new BufferedReader(new InputStreamReader(System.in));
    System.out.println("Please input
    ...
    See more | Go to post

    Leave a comment:


  • JavaStudent07
    started a topic Issue with loop in my code
    in Java

    Issue with loop in my code

    I have a feeling it is something simple troubling me, I just cant find out what that problem is. The progam is SO CLOSE! please help me.

    Code:
    public class BubbleSort2
    {
    public static void main (String args[]) throws Exception
    {
    String filage="";
    String linetext;
    
    BufferedReader inWords=new BufferedReader(new InputStreamReader(System.in));
    System.out.println("Please
    ...
    See more | Go to post

  • JavaStudent07
    replied to help with an error please
    in Java
    :) it doesn't work yet, lmao but thanks :) :) it at least doesn't have that gay error w00t...
    See more | Go to post

    Leave a comment:


  • JavaStudent07
    replied to help with an error please
    in Java
    its time to go, i will check responses tommorow, good luck understanding a begginers slaughter of a program :-P
    See more | Go to post

    Leave a comment:


  • JavaStudent07
    replied to help with an error please
    in Java
    H:\>c:\j2sdk1.4 .1\bin\java.exe BubbleSort
    Please input the name of the file from which the data will be acquired. Be sure to use the entire path
    h:\Numbers.txt
    67 34 5 6 23 12
    15
    PlaceHolder: 0
    Character:6
    PlaceHolder: 1
    Character:7
    Final Concatenated Result of While: 67
    PlaceHolder: 2
    Character: *Blank*
    PlaceHolder: 3
    Character:3
    PlaceHolder: 4...
    See more | Go to post

    Leave a comment:


  • JavaStudent07
    replied to help with an error please
    in Java
    input lines of numbers from a separate file and sort them from highest to lowest order

    ^^^
    thats the task,

    PS: there are spaces at the end of each data line otherwise it cuts off the last number, it just worked, i dont know...

    Thanks in advance for ANY HELP lol

    Steve
    See more | Go to post

    Leave a comment:


  • JavaStudent07
    replied to help with an error please
    in Java
    H:\>c:\j2sdk1.4 .1\bin\java.exe BubbleSort
    Please input the name of the file from which the data will be acquired. Be sure to use the entire pat
    h:\Numbers.txt
    67 34 5 6 23 12
    16
    PlaceHolder: 0
    Character:6
    PlaceHolder: 1
    Character:7
    Final Concatenated Result of While: 67
    PlaceHolder: 2
    Character: *Blank*
    PlaceHolder: 3
    Character:3
    PlaceHolder: 4...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...