Majestics 84 Posting Pro

Start from 0 for Sunday....

Majestics 84 Posting Pro
testScore = 0
 and then 
while(testScore>100)
then execute loop

If testScore is zero how can it execute the loop..
Hope this help

Majestics 84 Posting Pro

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.

Majestics 84 Posting Pro

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.

Majestics 84 Posting Pro

What is wrong with u man? I m not going to hack any one.... I just want to know the programming language.... Love you :)

Majestics 84 Posting Pro

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 :)

Majestics 84 Posting Pro

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 ?

jwenting commented: criminal +0
peter_budo commented: Compensation +0
Majestics 84 Posting Pro

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.

Majestics 84 Posting Pro

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....

Majestics 84 Posting Pro

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....

Majestics 84 Posting Pro

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.

Majestics 84 Posting Pro

You can add MouseListener or MouseMotionListener for each control in the JFrame...

Majestics 84 Posting Pro

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.

Majestics 84 Posting Pro

all the fields which are created are enabled by default
use this code to disable items

object.setEnabled(false);
Majestics 84 Posting Pro

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
Majestics 84 Posting Pro

The class Chatclient must be present at provided location.... If its in a jar that jar must be included at source location.

Majestics 84 Posting Pro
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.

Majestics 84 Posting Pro
Majestics 84 Posting Pro

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......

nagatron commented: nice job. . I never thought my problem would be that easy. .hehe thank you +3
Majestics 84 Posting Pro

http://www.chinesecomputing.com/programming/java.html

Read this .... It can help u a bit.

Majestics 84 Posting Pro

while(boolean)// its enough no need to check like if condition.

Majestics 84 Posting Pro

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.

Majestics 84 Posting Pro

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....

Majestics 84 Posting Pro

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.

Majestics 84 Posting Pro

Oops Sorry..... I think u must delete this post also i want to ask one thing, what do u mean by "OP"? :)

Majestics 84 Posting Pro

I think you are missing a } close bracket at line 123.

Majestics 84 Posting Pro

You forget something....................

Majestics 84 Posting Pro

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...

Majestics 84 Posting Pro
Majestics 84 Posting Pro

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

Majestics 84 Posting Pro

Line 21

ArrayList <StudentArrayList> record = new record <StudentArrayList>();

What is this record? .......................... :)

It must be ArrayList

Majestics 84 Posting Pro

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.

Majestics 84 Posting Pro

check my code , it only print blarg when it find null, and that only the selected value.

Majestics 84 Posting Pro

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.....

Majestics 84 Posting Pro

Remove line 36. , also u are getting values at line 35 but you are not storing it???

Majestics 84 Posting Pro
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

Majestics 84 Posting Pro

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());
}
Majestics 84 Posting Pro

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.
}
Majestics 84 Posting Pro

http://www.icepdf.org/

Its a open source library to render PDF files in the J Panel.

Majestics 84 Posting Pro

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

Majestics 84 Posting Pro
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 ...

Majestics 84 Posting Pro

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 ..............

Majestics 84 Posting Pro

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

Majestics 84 Posting Pro

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.

Majestics 84 Posting Pro

Which scripting language u prefer? I simply want to provide email address in "TO" field and attachment, rest is handled by user itself....

Majestics 84 Posting Pro

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.

Majestics 84 Posting Pro

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.

Majestics 84 Posting Pro
Majestics 84 Posting Pro

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.

Majestics 84 Posting Pro

Thank you,,, Hope this satisfy my friends ...............