jwenting commented: criminal +0
peter_budo commented: Compensation +0
nagatron commented: nice job. . I never thought my problem would be that easy. .hehe thank you +3
Start from 0 for Sunday....
testScore = 0
and then
while(testScore>100)
then execute loop
If testScore is zero how can it execute the loop..
Hope this help
I m extremly sorry... As a security professional you have to think negative a bit too to destroy ur own system... Dont take me wrong , i dont believe on stealing information either... I just want to check my system.
Sorry I put my question wrong way.... My Question is "how to analyze a system security"
Please Mods or admins correct the title of the question... Or this man gonna kill me with his words.
What is wrong with u man? I m not going to hack any one.... I just want to know the programming language.... Love you :)
1) I havent say i am new here.
2) Why a negative Vote , hacking is term which can use for positive terms too , like you want to analyze your own system security.
3) Thank you all of you....I didnt know that word "hacking" is very dangerous :)
I have choosen information security for my future field... Which language will be best for analysis of information and exploiting bugs? C or c++ or java or any other ?
On top of main java page there is an faq's regarding to java... You will find all kind of stuff necessary to learn java.... And google JDBC.... that's all u need for starter.
Thesis isnt a java topic ... Thesis consists of chapter's which is according to the information provided by institute. General it consist of Introduction , about old research , then your research etc....
I am working on packet analyzing software, so i just need a kick to start by reading the packets of wireless, but i dont have any idea regarding to it...
Any who handled such kinds of projects before please help me a bit....
You have written a wrong function
public String toString(){//to string summerizing all the inputs on output.
return ("The date you have enterd is : " + this.month +", " + this.day+", " + this.year);
}
1) as this.month function prints the integer value
2) you must use setMonth(month) function to print the month....
3) Also i think you have to modify your function of setMonth(month) because its not efficient, because when you are using switch then you can use default statement, there is no need to use if statement here.
You can add MouseListener or MouseMotionListener for each control in the JFrame...
Well according to my opnion better practice will be making a textfield and a small beautiful button with it. Disable text field. When the user press the button the message box display and ask for data and display it in textfield...
And i think you need confirmation box , not the messagebox.
all the fields which are created are enabled by default
use this code to disable items
object.setEnabled(false);
1) if its not going in while loop then it means the file u are specifying is empty
2) Remove Declaration out of Loop , i mean
String s;
loop
s = "something";
loop close
The class Chatclient must be present at provided location.... If its in a jar that jar must be included at source location.
try
{
//------------- Write your code here
}
catch(Exceptiontype object)
{
//--------- What will happen when error generate.
}
Generally u can use "Exception" to handle all kinds of exception but its not a proper way because you cant understand different type of exception then... Search down exception type in documentation and implement them.
http://stackoverflow.com/questions/400255/how-to-put-more-than-1000-values-into-an-oracle-in-clause
Check this its already solved here.
there is no need to mention auto increment explicitly , it will increment automatically when ever you insert a new row
further more the query must be like this
insert into Confirm(columnname) values(columnvalue)
Hope this Help......
while(boolean)// its enough no need to check like if condition.
Target Field is TimeStamp
time stamp is storing the data in format of dd-mm-yyyy hh:mi:ss.f , i dont want .f i just want upto seconds...
I tried both systimestamp and current_timestamp.
Its providing me error................................
insert into products_information
values(1,to_timestamp(current_timestamp,'DD-MON-YYYY
HH24:MI:SS'),1200,10,1000,12,1100,10)
/
ERROR: date format picture end before converting entire input string....
This is making me nuts... Please Help a bit....
Just a little bit more explanation.....
YES, IT IS POSSIBLE, BUT ITS NOT ORACLE FEATURE, ITS RDBMS FEATURE.All the dbms software which support relational database system, support this feature as well.
Oops Sorry..... I think u must delete this post also i want to ask one thing, what do u mean by "OP"? :)
I think you are missing a } close bracket at line 123.
You forget something....................
I think u made new id after getting banned onlineshade... Still i dont have any concernd with it...
If you want to run this application then u must have java ee configured or with java se u have to download api regarding to javax.mail from oracle website and provide the application at buildpath...
1) I dont know about the least but it will easily run over JDK 1.6.
2) It has Javax.mail api which is optional in JAVASE but is included in JAVAEE 5
Line 21
ArrayList <StudentArrayList> record = new record <StudentArrayList>();
What is this record? .......................... :)
It must be ArrayList
Ezzaral is right, just what are u posting @onlineshade, "develop logic before coding", does he posted any code yet... So When he hasnt coded anything how can u give such comments.
check my code , it only print blarg when it find null, and that only the selected value.
You Just need a else portion at line 46....
if(briefcase[z] == null){
System.out.println("Blarg");
}
else
System.out.println(" "+briefcase[z].getFace());
}
You are printing data even its class is null, that was creating error.
Also it seems a very bad programming practice.....
Remove line 36. , also u are getting values at line 35 but you are not storing it???
briefcase[nUser] = null; /// Why this... Remove Null
Also as i stated make it less then 11 at line 40 else it will give index out of bound exception
check at line 24 , 25
for(int a = 1 ;a<11; a++){
System.out.print("\t "+briefcase[a].getFace()+" ");
why are u leaving location 0
Also u cant use 11 th position , it should be less then 11, even u want to show something , dont code like this.
for(int z = 0 ; z<=11;z++)
{
if(briefcase[z] == null){
System.out.println("Blarg");
}
System.out.println(" "+briefcase[z].getFace());
}
Its not a place where u post your homework directly.... Still i am giving u a hint
loop
{
take three variable i,j,sum
i with certain value
j with certain value
sum = i + j
rest will be easy if u think a bit.
}
Its Done........ I have solved the problem... Sorry for starting a new thread
problem was at line 5 , its product_information.pno rather then products.pno
select p.productname,pinfo.entrydate from products p,products_information
pinfo where pinfo.entrydate = (select max(entrydate) from
products,products_information where products.pno = pinfo.pno) and cno=1
and pinfo.pno = p.pno
Now I have updated the code, i just want pinfo.entrydate get new value on change of p.pno ...
i have two products , product one has 5 entries of date and product 2 has 4 entries. I want to select max date entries of both...
select max(entrydate) from products,products_information where products_information.pno = products.pno
It return a single max date of one product....
Please Help ..............
Use Round Function if u want to round the data
http://download.oracle.com/javase/1.4.2/docs/api/java/lang/Math.html#round%28double%29
You can also format double to 2 digits by DecimalFormat class in java...
http://download.oracle.com/javase/1.4.2/docs/api/java/text/DecimalFormat.html
Error can be because JTextfield is defined outside static class "like main class". and u are accessing it in static class. In short you cant place non static variable in static functions.
Which scripting language u prefer? I simply want to provide email address in "TO" field and attachment, rest is handled by user itself....
I java u have to use layouts for setting location, u can also use no layout as i already given u the link. Check the link... For starter use flow layout, for complicated setting of GUI use gridbaglayout... U can also use other layouts... If you are not powerful handling such details and time is short for your project, move to netbeans, but remember IDE is helpful for professional not for beginner.
1)Study Java layouts..........
http://download.oracle.com/javase/tutorial/uiswing/layout/visual.html
2)Extra code for adding image to button
button.setIcon(new ImageIcon("")); // For adding image to button
3)U cant set buton location like u did above at line 22.
I am starting this thread to gather some useful information before i start my work
I am working on a project which takes user information and store it in database.. Now each user has seperate department's. I simply want to attach the user information to pre-configured outlook with department email....
Any idea from where to start... I have some seen documentation regrading to java to outlook api but didnt get it all.... Some easy phrases from professional will make things very easy for me.
Thank you,,, Hope this satisfy my friends ...............