Giter Club home page Giter Club logo

Comments (1)

SAIVEERENDER24 avatar SAIVEERENDER24 commented on June 17, 2024

public Timestamp getTime() & return time; }:
There seems to be a syntax error with the & symbol, which should likely be replaced with { to open the method body.
Also, time is not defined here. Presumably, you want to return some timestamp value. If time is a variable, it should be defined somewhere in the class.
Assuming time is a class variable and you want to return its value, the corrected version would be:
java
Copy code
public Timestamp getTime() {
return time;
}
public void setTime (Timestamp time) { this. time - time; }:
There's a syntax error here. It seems you're trying to assign the value of time parameter to some class variable, but the syntax is incorrect.
To assign the value of time parameter to a class variable, you should use the assignment operator = instead of -.
Assuming time is a class variable, the corrected version would be:
java
Copy code
public void setTime(Timestamp time) {
this.time = time;
}
public InputStream getProdImage) { return prodImage;:
There's a syntax error with the closing parenthesis ) after getProdImage. It should be replaced with { to open the method body.
Also, prodImage is not defined here. Presumably, you want to return some InputStream value representing a product image. If prodImage is a variable, it should be defined somewhere in the class.
Assuming prodImage is a class variable and you want to return its value, the corrected version would be:
java
Copy code
public InputStream getProdImage() {
return prodImage;
}
After correcting these syntax errors, the code should work as expected. Make sure to define time and prodImage variables appropriately in your class.

from shopping-cart.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.