.,'this is a simple java codes in w/c will enable to read a txt files.
Ezzaral commented: This adds absolutely no value to the thread. -1
.,'this is a simple java codes in w/c will enable to read a txt files.
..'this is a simple program in w/c enables to create a txt file.
it ask input from user first then put that in the txt file.
:-)
..this is a simple java code w/c allows to produce a beep sound.
timer also is being applied here.
hope it will help for any reason it may serve.
:-)
.,'this program will simply creates a diamond using asterisk.,'
just try out this code i am sure you will be interested.!..
email me about your comment in this simple program!..help me if you know the easiest way to construct this kind of program..'
.,'can you make a simple java pogram like this one?...
if you did kindly post it if you mind....
.,'its nice program bro!!!nice one!
is it java?why you post this one here???
.,.tnx for mking mhe laugh!!
hahahaha...
I remember this when I first encounter the world of programming!!Well, for the first time I really got difficulties on how to do this??
furthermore, its the first program I ever run before..
I'm so glad after running it..,
yah you're right!
all starts from it!!
this is we're I started...
hehehehe...
..thanks for this one!
it help me during our project before!!!
..its good to see how really sorting goes on!..
if we use java.util.Arrays.sort(array);
it makes us faster and easier!.,..
yah its much easier but this one is good to letting know your self on how sorting goes on!!
this help most students like me!!!..
well, its up to you on what you better used to be,.
the point is you understand how it goes like that and goes like this and so on and so for.....,;
..I have a simple c# application...
on the form, it contain windows media player in w/c will be able to play music nd video files.
I have problem on it, while running the application in the other pc.
I really wonder why it doesn't work in the other pc yet it works in the pc I am using.
I already all he supports I think is needed to run the application.
-do I need to install visual studio 2008 in that pc just to run that application?
-what are some steps that I should remember so that I can run my application in the other pc.
any help about it!:dry:
..I just want to have some answers about it..
-is posible that we can put a windows media player in our java program??
if yes, can anyone give some info on how could I do it..
or even the bets site tutorial on how to do it...
-tnx
write a gui program to compute the amount of a certificate of deposit on maturity.the sample data follows:
Amount deposited 8000.00
Years 15
Interest Rate 7.75
Hint: compute 8000.00(1+7.75/100)to the power of 15
--whats this one???
this site is not for this kind of activity!
you said you need a help bt whre is d thing that you need to ask for help??
think first before you post
I just want to open the class file...
..I am using ms acces...
what I want to know is how to open the class...
I know already how to get the data from my database...
my problem is how could I open the class in w/c will get the data from my database...
what is the method shall I put so that I can open the class...
..is anyone knows how to get the cpu usage using c-sharp???
I got difficulties to find the tutorials of it..!
can you help me whats the code of it!!!!
tnx...
..I made a simple project in java using JCreator..,
this is my first time to make a project file,.
I made a class named put_data in w/c will put some data in my database
then, I made also another class get_data in w/c will get the data from my database!..
in my get_data class I put a button there,!
a button in w/c if it is being click it will open the get_data class!!
my problem is,.I got some problems on how to do it.,!
can anyone help mhe about this one!!!...
any help is highly appreciated!!!
.,'just an idea..
try to read the input by each character..
use charAt() to do this,
while reading put a condition,,
if the character is a number then store it in an array in which you will store all the integer character..,
if the character is an operator then store it in another array in which you will store all your operator,..
take note that the array of your numbers, its not yet an integer value yet it is still consider as char value...
you cant directly convert char to integer.
you must convert first char to string then after it you can convert now to integer...
now, cos you store your data in a an array you can have some operations you want to do into it.,
-just try it...
hope it help you to get some idea
..'in my own way I prefer to put a condition like this:
int input=5;
if(input%2!=0)
System.out.print(input+" is prime number!");
else
System.out.print(input+" is not prime number!");
.,tnx for all your concern about this problem guys!
I got it already...
:)
...no effort=no answers!
try to solve it by your own!..
if you see some errors then post it..
maybe we can fixed it out!:)
.,...I got it already guys!
I made some changes i my driver connection..!
so far it works now!!!
tnx for sharing mhe your knowledge guys!!
:)
.,.tnx for all the concerns guys!!
I'll try my best to fix this out!
:)
..I am using ms sql server,then is it necessary to put these
mysql-connector-java-5.0.7-bin.jar jar...
I thought mssql is difference than mysql...
well, I tried it also but still it doesnt connect in the database...
.,I tried to put that..then this error occurs
java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at JCustomer.main(JCustomer.java:10)
Exception: com.microsoft.jdbc.sqlserver.SQLServerDriver
.,may I know whats the problem with this one...
I made a simple program in which will connect to ms sql...
then, after running the codes something is error!
can you help me to solve this out...
here is my code:
import java.sql.*;
public class connect_sql {
public static void main(String args[]) {
Connection con = null;
try {
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
con = DriverManager.getConnection( "jdbc:microsoft:sqlserver://localhost:1433","ben","");
if(!con.isClosed())
System.out.println("Successfully connected to MSSQL server...");
}
catch(Exception e)
{
System.err.println("Exception: " + e.getMessage());
}
finally {
try
{
if(con != null)
con.close();
}
catch(SQLException e) {}
}
}
}
and here is the error msg:
Exception: com.microsoft.jdbc.sqlserver.SQLServerDriver
what should I do so that I can connect to sql...
can you pls help me here...
-tnx
.,'you dnt need to put a loop inside the while loop
you can made this one in this way...
try it!
import java.util.Scanner; //Needed for Scanner class
import java.io.*; //Needed for file and IOException
public class orderOfFileLines
{
public static void main (String[ ] args) throws IOException
{
//int number; //Loop control variable
//Create a Scanner object for keyboard input.
Scanner keyboard = new Scanner(System.in);
//Get the file name.
System.out.print("Enter the name of a file : ");
String filename = keyboard.nextLine();
//Open the file.
File file = new File(filename);
Scanner inputFile = new Scanner(file);
//Read the lines from the file until no more are left.
int x=1;
while (inputFile.hasNext())
{
//Read the next line.
String line = inputFile.nextLine();
//Display the lines with number and ":".
System.out.println(x + line + ":");
x++;
}
//Close the file.
inputFile.close();
}//end main method
}//end class
-tell me how it works then okey!just email me
maybe you can try this one...
take a look with this example.,
int input=5;
if(input%2!=0)
{
System.out.print(input+" is prime number!");
//put the data this in your txt file...
}
else
{
System.out.print(input+ " is not prime number!");
}
that condition above will tell if the number is prime or not..
tell me if this one works in your code ok!!!
.,ahuh!
i see..
.,what is the best tutorial to know on how to insert an audio in my java program...
-any advice is highly appreciated...
alpe:)
I already got this one...
System.out.println("Hi!");
Thread.sleep(3000);
System.out.println("How are you there!");
thnx for it!,...
Although, I tried it using dialogbox.,
JOptionPane.showMessageDialog(null,"Hi!");
Thread.sleep(3000);
JOptionPane.showMessageDialog(null,"How are you there!");
.,my question is...
why
Thread.sleep(3000);
doesn't work during the proccess.,
is
Thread.sleep(3000);
limited only???
if not,how can I apply this one while using dialogbox....
can you help me about this one pls....:)
yours truly,
alpe
.,thnx a lot guys!:)
I got it already.,...
.,'I created a program to put some data in a certain datagrid..
I succesfully made it...
but, the point that makes me confuse now is how to get that data in which i will be going to put in my database.,'
I get some difficulties on how to do this...
help me pls.....:'(
:)
ANY HELP IS HIGHLY APPRECIATED,
:)
can anyone help me with this one...
System.out.println("Hi!");
System.out.println("How are you there!");
-can i display this one controlling the time!
what i mean is..
display first the "Hi!"
and then after 3 seconds it will display "How are you there!"
Help me pls..
ANY HELP IS HIGHLY APPRECIATED
-alpe
.,sory poh!!!
i'm still beginners in this site..!
I took crelessness with this one...
hehehehe!!!dont get mad guys!
actually i am still beginners in java...that's why!!!!
thanx a lot!!!
.,thank you so much...
.,'is any knows the code to delete a directory in java...
help me pls...
YOUR ANSWER IS HIGHLY APPRECIATED!..
.,'is there any software in w/c we can simply creates a frame in java by just click and drop only???I still didn't know it????help me to know this pls....:)
if you illustrate me the problem clearly maybe i can help...I didn't get the problem...
you must desclare this one first bro!
String q="";
q = answerField.getText();
int n1 = Integer.parseInt(q);
//email me whats the result ok!
jalpex91@gmail.com
bro!
just try to download the exe4j_windows_4_1.exe software....
ok!
//after declaring your filereader just put up this condition
BufferedReader reader = new BufferedReader(new FileReader("--your file here--"));
String line="";
String out="";
while((line=reader.readLine())!=null)
{
if (line.length()>0)
out+=line+"\n";
}
//well im still a java beginners in java bro!just study out of this code maybe you will have the //idea on how to do...I've tried this code to get data in a cetain database..!
import java.sql.*;
public class alpe_connect_database
{
public static void main(String[] args)
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
Connection conn = DriverManager.getConnection("jdbc:odbc:;DRIVER=Microsoft Access Driver (*.mdb);DBQ=c:\\data.mdb;");
Statement command = conn.createStatement();
ResultSet rs = command.executeQuery("select * FROM namelist");
while (rs.next())
{
System.out.print("ID NUMBER : ");
System.out.println(rs.getString(1));
System.out.println("NAME : "+rs.getString(3)+" , "+rs.getString(2));
System.out.println("");
}
System.out.println("Connected To Access");
}
catch (SQLException se)
{
System.out.println(se);
}
catch (Exception ex)
{
System.out.println(ex);
}
}
}
//just try it bro!gdluck..
.,'is anyone knows how to open a new frame in java?help me pls.
:'( ...i got difficulties with this one!!