Search:

Type: Posts; User: vector_ever

Page 1 of 2 1 2

Search: Search took 0.46 seconds.

  1. Replies
    0
    Views
    60

    Name and Path of the file in JSF

    Hello,

    i want to write a jsf code to get a site where i can able to browse the files in my computer and choose on of them (upload)
    File Upload is Easy in JSF2.2 | Ramki Java Blog
    jsf -...
  2. Replies
    3
    Views
    473

    Re: Templates for Java Client rabbitmq

    Thank you "GregBrannon" for your Reply.

    Actually i prefer to use the Templates because it is very very easy with many categories ans methods, but the problem i don't know how and where find them
  3. Replies
    3
    Views
    473

    Templates for Java Client rabbitmq

    Hello,

    i would like to start learn how to make code using Java Client rabbitmq, any way i found a tutorial RabbitMQ - Getting started with RabbitMQ but it is not powerfull tutorial.

    I read in...
  4. Re: Change the name of the Project from web.xml

    My specific question is: if there any possibility to change the Project name using some tags < > in web.xml, if yes so which one?

    Otherwise i can't change name of the Project manually, because the...
  5. Re: Change the name of the Project from web.xml

    if you mean to change the name of the Project, it is obvious very very easy, but it will make conflicts with names of other Projects, so the only choice is doing it through web.xml
  6. Change the name of the Project from web.xml

    Hello,

    if i use Tomcat 7 as a server, and my Project's name is "Old_Name" so when i want to run my server for this Project the path will be some thing like this:
    ...
  7. Read Date from Excel and change its Format

    Hello,

    i have excel file and i want to read some column and insert it in DB, any way i want to read Column with Date


    The column in the Excel file, which i want to be read

    Date
    ========...
  8. Replies
    1
    Views
    468

    com.sun.jersey.api.MessageException

    Hello,

    Today i tried to build my first Client REST WEB Serviece (using Jersey), i make very simple example, but some how to get a error every time

    public class Location {

    private int...
  9. Replies
    1
    Views
    257

    setter of Type Enum

    Assume the following enumeration:

    public enum FederalState {BW, BY, BE, BB, BR, HH, HE, MV, NI, NR, RP, SL, SN, ST, SH, TH}


    public class Location {

    private FederalState state;
    private...
  10. Re: HashSet cannot be cast to java.util.ArrayList

    ok the same what i did, i also make the same
    ArrayList list = new ArrayList(set);
    but still get the error
  11. HashSet cannot be cast to java.util.ArrayList

    public class Employee{

    private int id;
    private String name;
    private String address;
    private double salary;
    //setter & getter
    }
  12. Replies
    9
    Views
    216

    Re: convert double to int in ArryList

    Some times you don't have any another choice, any way the solution to do it


    public static void main(String[] args) {
    ArrayList arr = new ArrayList();
    arr.add("hi");
    arr.add(2.5);...
  13. Replies
    20
    Views
    396

    Re: HashSet store duplicated Value

    I still always incapable to to improve it or understand your ideas


    return (id == ((Employee) obj1).getId() || name.equals(((Employee) obj1).getName()))
    I thought it is enough since whatever if...
  14. Replies
    9
    Views
    216

    Re: convert double to int in ArryList

    public static void main(String[] args) {
    ArrayList arr = new ArrayList();
    arr.add("hi");
    arr.add(2.5);
    arr.add("x");
    arr.add(2.9);
    arr.add(1.0);...
  15. Replies
    9
    Views
    216

    convert double to int in ArryList

    Hello,

    assume that i have the flowing arrayList:


    ArrayList arr = new arrayList();
    arr.add("hi");
    arr.add(2.5);
    arr.add("x");
    arr.add(2.9);
  16. Replies
    2
    Views
    284

    Re: in web.xml whith Jersey

    the solution
  17. Replies
    2
    Views
    284

    in web.xml whith Jersey

    Hello every one,

    I am just get confused because the web.xml data when i using REST Web Service using Jersey

    now i have 3 Packages, and every package contain at least one jersey class.

    Now...
  18. Replies
    20
    Views
    396

    Re: HashSet store duplicated Value

    Now what the next, any advanced help??
  19. Replies
    20
    Views
    396

    Re: HashSet store duplicated Value

    I put it


    @Override
    public boolean equals(Object obj1){

    if(!(obj1 instanceof Employee))
    return false;

    return (id == ((Employee) obj1).getId() ||...
  20. Replies
    20
    Views
    396

    Re: HashSet store duplicated Value

    and how you suggest to use equal() method to give me the desired result, what should i add in my equal and Hashcode methods?
  21. Replies
    20
    Views
    396

    Re: HashSet store duplicated Value

    return (id == ((Employee) obj1).getId() || name.equals(((Employee) obj1).getName()));

    means if, either id or name are duplicated in any object then don't add them in the HashSet

    On this basis,...
  22. Replies
    20
    Views
    396

    Re: HashSet store duplicated Value

    ok for example i want to make compare as the following: if the ID or name is Duplicate in any object dann must not be added


    @Override
    public boolean equals(Object obj1){

    ...
  23. Replies
    20
    Views
    396

    Re: HashSet store duplicated Value

    i know that i must do so, but i don't know how
  24. Replies
    20
    Views
    396

    Re: HashSet store duplicated Value

    i added this part in Employee.java Class and it works


    @Override
    public boolean equals(Object obj){

    if(!(obj instanceof Employee))
    return false;
    ...
  25. Replies
    20
    Views
    396

    HashSet store duplicated Value

    Hello;

    as known HashSet store no duplicated values Unlike ArrayList, anyway i tried to make example to store Objects in HashSet and the result show it take Duplicated values


    import...
Results 1 to 25 of 46
Page 1 of 2 1 2