Need Help with college Java programming - Sajha Mobile
SAJHA MOBILE
Need Help with college Java programming
Posts 9 · Viewed 8160 · Go to Last Post
ProblemSolver
· Snapshot 0
Like · Likedby · 0

 

Last edited: 26-Mar-15 10:31 AM
prankster
· Snapshot 31
Like · Liked by · 0
It didn't format well, try this,
http://www.codeshare.io/Su47r

Last edited: 25-Mar-15 04:21 PM
ProblemSolver
· Snapshot 56
Like · Liked by · 0
Hi Prankster:
I get following error while running the code, can you help which should be the main.


Error: Main method not found in class shoutOutCannedMessage.ShoutBoxTest, please define the main method as:
public static void main(String[] args)

Thanks,
prankster
· Snapshot 60
Like · Liked by · 0
Comment out line 1, and save lines from 2-56 in Shoutbox.java
Comment line 59, and save lines from 60 to 68 in ShoutBoxTest.java

compile both
and run ShoutBoxTest.java
ProblemSolver
· Snapshot 70
Like · Liked by · 0
I am still getting error on line 33, 52 and 53.
ProblemSolver
· Snapshot 72
Like · Liked by · 0
Hey Prankster,

Finally the code ran, but the code is not asking user to input messages. It displays 10 message on its own.

prankster
· Snapshot 105
Like · Liked by · 0
Your question says,
"Initialize your Array or ArrayList with the user input or messages", 
I initialized with messages.
ProblemSolver
· Snapshot 135
Like · Liked by · 0

 

Last edited: 26-Mar-15 10:32 AM
prankster
· Snapshot 158
Like · Liked by · 0
check the same link for updated code
Please log in to reply to this post

You can also log in using your Facebook
View in Desktop
What people are reading
You might like these other discussions...
· Posts 18 · Viewed 4054 · Likes 3
· Posts 1 · Viewed 100
· Posts 1 · Viewed 93
· Posts 1 · Viewed 186
· Posts 1 · Viewed 396
· Posts 1 · Viewed 231
· Posts 1 · Viewed 137
· Posts 1 · Viewed 115
· Posts 77 · Viewed 18823 · Likes 18
· Posts 1 · Viewed 167



Your Banner Here
Travel Partners
Travel House Nepal