Search:

Type: Posts; User: codingkeera

Search: Search took 0.12 seconds.

  1. Navigating the Java Web Development Roadmap: Where to Begin?

    Greetings, Java enthusiasts

    I'm new to web programming using Java and have around 10% of knowledge, but I'm still lost, and I'm anxious to create a roadmap to lead me through this interesting...
  2. Understanding Classes & Objects in Java

    Hello Java enthusiasts,

    Today, we'll look at the core ideas of classes and objects in Java. We'll begin by looking at a code sample that shows the creation and use of classes and objects:


    //...
  3. Java Multidimensional Array Issue: Seeking Expert Insight

    Hi, I'm now working on a difficult problem involving multidimensional arrays in Java and am looking for advice from the experienced Java developers. The array operations are generating unexpected...
  4. Replies
    1
    Views
    666

    Java Code Challenge: Palindrome Check

    Write a Java function that determines if a given string is a palindrome. The function should return true if the input string is a palindrome and false otherwise. Palindromes are strings that read the...
  5. Online Java Compiler Issue: Code Not Executing as Expected

    I'm using Scaler online Java compiler for my project, and I'm encountering unexpected behavior in the execution of my code. Here's a simplified snippet:


    import java.util.ArrayList;

    public...
  6. Re: Main.java expects Person.java behavior to work. How can I solve this?

    To make the Main.java code work with the Person class, you should define the Person class in a way that it has a method named helloWorld(). Here's how you can modify the Person class to meet this...
  7. Understanding Control Structures in C++: Looping Through an Array

    I'm learning C++ and trying to grasp control structures. I have an array of integers and I want to iterate through it using different control structures to achieve the same result. Here's my array:
    ...
  8. Java Exception Handling: Handling Checked Exceptions

    I'm working on a Java application that involves file I/O, and I'm dealing with checked exceptions, specifically FileNotFoundException when attempting to read a file. I want to handle this exception...
  9. Advanced JavaScript Array of Objects Sorting: Multi-Criteria Sorting

    I'm working on a JavaScript project where I have an array of objects, and I need to sort it based on multiple criteria. Each object represents a product and has properties like 'price', 'rating', and...
  10. Java NullPointerException When Accessing Object Attributes

    I'm encountering a NullPointerException in my Java code when trying to access the attributes of an object. I've created an instance of a class and assigned values to its attributes, but I'm still...
  11. How to Implement Cross-Origin Resource Sharing (CORS) in Java Web Application?

    I need to activate Cross-Origin Resource Sharing (CORS) for my Java-based web application in order to accept queries from other domains. I'm taking Scaler's web development roadmap as a guide, but...
  12. Hibernate custom type - Could not determine class type

    I'm using Postgres with a custom type extension (visible as Type.OTHER), and I want to be able to utilise the type without casting in native queries. My Java type is EmbVector, and my custom type is...
  13. Replies
    1
    Views
    1,945

    Final Keyword In Java

    I'm not sure where the final keyword comes in handy when used on method arguments.

    If we ignore the use of anonymous classes, readability, and intent statement, it appears nearly worthless to me....
  14. In Java, are only local variables actually final

    I'd want to use Java 9's try-with-resources capability by putting a reference variable in try with resources rather than the variable's full declaration. I also realise that in order to do so, I must...
  15. The yield() function in Java does not work.

    I'm using Netbeans 6.9.1 on Ubuntu 10.04 x86 64 to work with Threads in Java. I'm having trouble with the yield() function because when I use it, the current thread continues to run instead of...
  16. how do you change the datatype of an attribute from String to Array?

    I'm having a difficulty. I want to modify an attribute's data type from String to Array.

    {
    “id”: “trn:tarb:tradingpartner:uuid:00000464-fa72-49fe-b050-c4bf1cfd8259”,
    “partnerNumber”:...
  17. Replies
    1
    Views
    909

    Java equals() selection*

    In Java, if I try to do.equals() on a null string, a null pointer error is issued. I’m wondering whether I can perform the following if I’m attempting to compare if a string is equal to a constant...
  18. Why is it not possible to define a static method in a Java interface?

    Because all subclasses would be required to implement the static method, they would all be fine when calling it. So, why isn't this a possibility? When the static members' initial values are not...
  19. Replies
    0
    Views
    1,599

    How to create XSD classes for Jackson.

    Jackson does not provide a tool for generating Jackson classes from XSD or JSON, as JAXB does for a specific XSD.

    The JAXB class generator was used to generate a set of classes for the specified...
  20. Java Stack Implementation With the Help of Arrays

    How can I write a program to implement a Stack using Array for this example:

    Example:



    Input:
    push(2)
    push(3)
    pop()
Results 1 to 20 of 20