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
User Profile
Collapse
-
small question on conversion from an integer to ASCII code
-
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 -
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 useLeave 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 arrayLeave 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();Leave a comment:
-
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
SteveLeave a comment:
-
-
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. -
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.Leave a comment:
-
...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); }Leave a comment:
-
I want them to find the data file inputted at the command prompt and run the program for each line with the while statementLeave a comment:
-
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.Leave a comment:
-
...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 inputLeave a comment:
-
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 -
:) it doesn't work yet, lmao but thanks :) :) it at least doesn't have that gay error w00t...Leave a comment:
-
its time to go, i will check responses tommorow, good luck understanding a begginers slaughter of a program :-PLeave a comment:
-
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...Leave a comment:
-
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
SteveLeave a comment:
-
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...Leave a comment:
No activity results to display
Show More
Leave a comment: