Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!

Ioanna Katsanou

Ranch Hand
+ Follow
since Nov 10, 2016
Ioanna likes ...
Oracle Java
Hello, my name is Ioanna.

I have completed my Master studies in the field of Informatics. My undergraduate studies stand in the field of Mathematics which gave me the opportunity to successfully enter the area of programming which I find extremely interesting.

I really enjoy Java programming language.
I am currently working as a junior Java Developer and seeking each day to learn something new.
Cows and Likes
Cows
Total received
1
In last 30 days
0
Total given
0
Likes
Total received
5
Received in last 30 days
0
Total given
26
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ioanna Katsanou

Should I add a toString method in Employee class?
This will be hardcoded Json....
8 months ago
So.

I created the Employee Class:






I remove the toString method from the Employee class.


and then I wrote the following code:


 



8 months ago
I researched a little. I understood what you mean. I will post new code in a little.
8 months ago
Could you please explain what you mean?

I am new at this..

thanks
8 months ago
I created the following class:







Is this the right way?
8 months ago
You are right. I will create a seperate Employee class.

I will post code in a few minutes.

thanks
8 months ago
Hello everyone.

So I need to make a POST call with Java to a REST Service. My code works fine, I am just writing in order to ask if there are better ways to do this, or if someone could refactor my code and make it more beautiful or with better performance.
I decided to user the Gson library, provided by Google.

I am giving an Employee Id and an email, phone, etc.
The input of the POST method should be in this format.





and the response I get is in this format:





So I wrote the following code, but I am uncomfortable with the input Json string... I mean what if i only want to send only one attribute (as following)






Then I have to do major adjustments in the code....

My code is the following. Any comments are welcome ! This is my first time to interact with REST/Json elements.








8 months ago
I java a java method, which makes a connection to a web service.
Sometimes this method takes too long to make the connection.
I want for example it it takes longer than 5 seconds, then to stop the current procedure and restart all over for 3 more times. If all times fail, then abort completely.

I have written the following until now:

       
The first column is considered to be the key, so only for the first,
but it should insert all columns


Is it a good idea maybe to select all the names from DB B, and store them in a SET

and then while iterating through the resultset from DB A , check if name exists in SET and if it does not exist then insert the record?
Hello everyone,

I am facing with the following issue:

I have two Databases, that have a table of the same form.

For example

Database A, Table 1


Database B, Table 2 has the same columns.
I want to run the program every 1 minute and to compare all the values of the two databases, and i something does not exist in Database B to add it.

Do you know what is the most efficient way to do this?

I though of the following:

select all values from Database A
in the  
select the value from DB B to see if the record exists.
If it exists then move on to the following record.
If it does not exist then insert the record in Database B.

My way is a little time consuming.

All ideas are welcome

Thank you,
Ioanna
Hello,

I want to insert a row in to an Oracle DB in the following form:

value1
bob
alice



and then select it as well.

Does anyone know how to achieve that?

For example:



Thanks,
Ioanna
Hello everyone.

I am about to give the  Oracle Java Cloud Service Certified Associate | 1Z0-161 certification.
I found some Mock tests online but I am  not sure which is the best.


Just Certs

Pass 4 sure

Oracle study


Has anyone tried any of the above sites ?

Also has anyone given this exams and has any pointers or study recommendations?



Thank you,
Ioanna