Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
java x 38
Member Avatar for JamesKox

Here's a question i got in my assignment... [QUOTE]Create a method with signature public String testWindDirection() that creates a local object of type WeatherReport using the constructor with no parameters, and returns its initial wind direction, e.g "ESE"[/QUOTE] I createrd it here... [CODE]public class Reporter { private WeatherStation ws; private …

Member Avatar for JamesKox
0
103
Member Avatar for JamesKox

I'm was wondering if someone can check if this method produce the right result? [CODE] public int fileSize (String name) throws IOException { int charLength = 0; File file = new File("name"); Scanner input = new Scanner(file); while (input.hasNext()) { charLength++; } return charLength; }[/CODE] What this is supposed to …

Member Avatar for JamesKox
0
254
Member Avatar for JamesKox

Hello guys, I'm trying to create a method where it takes a InputStream as a parameter, reads the stream and returns the number of characters it contains as an int. I'm having difficulties with this. I've searched the internet for examples, but i can't find one that helps me with …

Member Avatar for kvprajapati
0
2K