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,...
Type: Posts; User: sith
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,...
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.
...
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...
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...
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?...
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>
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>
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 = "";
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 = "";
Hi, I have attached the file. Could you please check
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...
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> ...