Comments (1)
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)
- where is the sql file dear.. i wanna try it HOT 1
- Issue HOT 1
- please upload the sql file... HOT 4
- Security Bug(Cross Site Scripting)
- conn null HOT 1
- page not loading properly and content not loading // http status 404 HOT 2
- Permission to shashirajraja/shopping-cart.git denied to Nani6318 I want to use this project in my github portal HOT 1
- Possible null pointer dereference of conn in com.shashi.service.impl.UserServiceImpl.registerUser(UserBean)
- sendRedirect potnetial IOExcpetion thrown with no try-catch
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shopping-cart.