 |
 |
When posting your question please:- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode HTML tags when pasting" checkbox before pasting anything inside the PRE block, and make sure "Ignore HTML tags in this message" check box is unchecked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers,
Chris Maunder
The Code Project Co-fou
|
|
|
|
 |
Google had so many different results and some were full of jargon which made it hard to understand, so if anyone can recommend any good sites they know of for programming beginners it'd be a massive help ,thanks
|
|
|
|
|
|
 |
any buddy know how to add voice recognition in java programming..
plzzzzzzzz tell me............
|
|
|
|
|
 |
how can i retrive information from my database?
|
|
|
|
 |
With some code, probably some that includes a "SELECT" statement.
Now, if you want some more useful help, then please edit your question, show what you have done, and what you are having a problem with.
|
|
|
|
 |
Hi ,
let me know
How do I get Owner name of a file which is located in FTP server.
Thanks
Hanuman
|
|
|
|
|
|
 |
Hi indika,
I tried this one . Here we are giving local path. But my requirement is file is located in FTP server.
please give me any advice.
Thanks
Hanuman
|
|
|
|
 |
You already have a suggestion, you use the remote ls command. Check the documentation for the FTP protocol to see what options are available.
|
|
|
|
 |
By ls I am not getting any owner name of a file.
please help me on the same.
I am using apache commons net api for connection FTP.
Thanks
Hanuman
|
|
|
|
|
 |
Hi,
by using java code we have to get file owner. not command prompt.
please help me on the same.
Q) How to get Owner name of a file which is located in FTP server.
Thanks
Hanuman
|
|
|
|
 |
I have already told you what the options are. If the server does not provide that information then you cannot access it. Did you try "ls -l" to see what information is provided?
|
|
|
|
 |
Hi,
by using java code we have to get file owner. not command prompt.
please help me on the same.
Thanks
Hanuman
|
|
|
|
 |
Then you need to write a program that will access the information on the FTP server, probably via sockets. Although you will need to understand the FTP protocol, as documented in https://tools.ietf.org/html/rfc959[^].
|
|
|
|
 |
Hey Guys, I am making a TicTacToe Game in Java and I am having someone difficulty figuring out what I am doing Wrong.
1. I made a tic tic toe board which look something like this.
Hide Copy Code
System.out.println(" | | );
System.out.println( 0 | 1 | 2 );
System.out.println( | | );
System.out.println( -------------------------------);
System.out.println( | | );
System.out.println( 3 | 4 | 5 );
System.out.println( | | );
System.out.println( -------------------------------);
System.out.println( | | );
System.out.println( 6 | 7 | 8 );
System.out.println( | | );
2. I asked the user for a number between 0-8 and the number they choose will be Replaced by X.
Say they choose number 5. This is how it will look like.
Hide Copy Code
System.out.println(" | | );
System.out.println( 0 | 1 | 2 );
System.out.println( | | );
System.out.println( -------------------------------);
System.out.println( | | );
System.out.println( 3 | 4 | X );
System.out.println( | | );
System.out.println( -------------------------------);
System.out.println( | | );
System.out.println( 6 | 7 | 8 );
System.out.println( | | );
3. I don't know how to create a loop which will keep asking the user for a number until it reaches to all the 8 numbers. Also, how do I check if the number is taken or not.
IT WILL BE GREAT IF YOU CAN HELP ME.
|
|
|
|
|
 |
Why are you constantly posting same question in two different forums?
I have already posted the answer to your problem on your question, Can someone help me what I am doing wrong with this code?[^]. Read that thread.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
 |
public class tictok {
private int OO = 1;
private int XX = -1;
public int arr[] = new int[10];
public int getArrPos(int i,int j)
{
if (i==1) {
return j == 4?1:j==15?2:j==26?3:-1;
}
if (i==5) {
return j == 4?4:j==15?5:j==26?6:-1;
}
if (i==9) {
return j == 4?7:j==15?8:j==26?9:-1;
}
return -1;
}
public void printMap() {
for(int i=0;i<11;i++) {
for(int j=0;j<32;j++) {
if (i==3 || i==7) {
System.out.print("-");
continue;
}
if (j==10 || j==21) {
System.out.print("|");
continue;
}
if(getArrPos(i, j)!=-1){
if (arr[getArrPos(i, j)]== OO) {
System.out.print("O");
}else if (arr[getArrPos(i, j)]==XX) {
System.out.print("X");
}else {
System.out.print(getArrPos(i, j));
}
continue;
}
System.out.print(" ");
}
System.out.println();
}
}
public void play(int n,boolean isO)
{
if (n>9) {
System.out.println("silly B");
return;
}
arr[n]= isO?1:-1;
}
public static void main(String[] args) {
tictok tt = new tictok();
tt.play(8, true);
tt.play(6, false);
tt.printMap();
}
}
is it useful?
|
|
|
|
 |
The driver has not received any packets from the server Some database interactions are successful and after that this Exception is raised…
I am using:
MYSQL 5.6
Netbeans IDE
MYSQL workbench
I had tried things like changing timeouts and other settings of MYSQL configuration but nothing is working....
|
|
|
|
 |
Do you mean that Netbeans is throwing exceptions, or do you actually have some Java code involved?
|
|
|
|