Search:

Type: Posts; User: sith

Search: Search took 0.09 seconds; generated 27 minute(s) ago.

  1. How to subtract from the total length of an array

    I have an array named shop which has a length of 10.

    char shop[][] = new char[10][10]
    so my shop.length is 10

    if (colshop == 9)
    In the above line, I have hard-coded the value to be 9,...
  2. Sudoko grid conversion from 9*9 to all grid size

    I have coded for Sudoku puzzle in java.The thing is my code has limitation for giving inputs for 9*9 grid.How do I make my code adaptable for all the grids.Please have patience.I am new to java.
    ...
  3. How to store the contents of string array to 2 dimensional character array

    Hi,the following code asks for grid size and then takes the input values from the keyboard and stores contents in "str".Now I want to store contents of "str" in a 2-dimensional character array named...
  4. convert characters while writing into outputfile

    Hello, I have an input_filename which says hello world.

    In the output file named output_filename, I have to read the input_filename and convert those exact words as upper case.eg: output file...
  5. Replies
    1
    Views
    713

    Need help with replace function

    My code(pasted below) basically replaces A, B, C with C, P, Q.
    My new requirement is, I am going to create a file and then it has to replace the A, B, C of file content with C, P, Q. How do I do it?...
  6. Replies
    13
    Views
    933

    Re: Need help with ideas

    yes if your file is empty, the output is just the HTML tags:
    when the first line starts with the "title:", then the text following "title:" should be enclosed between <title><title>
  7. Replies
    13
    Views
    933

    Re: Need help with ideas

    sorry I posted the code twice.

    The output of the code is: whatever I store in the file gets displayed:
    <html>
    title: Hello
    I *am* fine
    __Hi_
    be !bold
    </html>
  8. Replies
    13
    Views
    933

    Re: Need help with ideas

    import java.io.*;
    import java.util.ArrayList;
    import java.util.Stack;
    public class hello_world2
    {
    public static void main(String[] args)throws Exception
    {


    String strin = "";
  9. Replies
    13
    Views
    933

    Re: Need help with ideas

    import java.io.*;
    import java.util.ArrayList;
    import java.util.Stack;
    public class hello_world2
    {
    public static void main(String[] args)throws Exception
    {


    String strin = "";
  10. Replies
    13
    Views
    933

    Re: Need help with ideas

    Hi, I have attached the file. Could you please check
  11. Replies
    13
    Views
    933

    Re: Need help with ideas

    hello,

    I have created an array list and stored the contents of the file in the Array list.

    I just need a clue on the following:

    if suppose the contents of the array list has...
  12. Replies
    13
    Views
    933

    Need help with ideas

    when I give input in my text file as

    title: just do it
    _something_

    I should get my output in the java console in the html format as follows:

    <title>just do it </title> ...
Results 1 to 12 of 12