|
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?
|
|
|
|
|
Yes Java code is written to read data from MYSQL table process it and get output.This is my connection string:
String dburl = "jdbc:mysql://127.0.0.1,&autoReconnect=true&failOverReadOnly=false&maxReconnects=10:3306/project";
String driver = "com.mysql.jdbc.Driver";
String sUser = "root";
String sPwd = "root";
|
|
|
|
|
Where does the exception occur, and what is the information provided by it?
|
|
|
|
|
Exception is occurring after having some successful interactions with MYSQL database.
|
|
|
|
|
What is the exception message?
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|