No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Tried to compile the following code and got these errors: [CODE]Course.java:43: incompatible types found : java.lang.String required: double double cStart = df.format(cStart); ^ Course.java:44: incompatible types found : java.lang.String required: double double cEnd = df.format(cEnd); ^ [/CODE] Here are my two classes: [CODE] import java.text.DecimalFormat; public class Course implements Comparable<Course>{ … |
|
Hi! Two errors pop up when I try to compile this code (to organize classes and fit as many as possible in a schedule), in the lines "Course newCourse = new Course(cName, cStart, cEnd);" and "lastEnd = course.getETime;" I'm not sure why the code is having trouble accessing the course … |
|
For a program I'm writing, I'm trying to get rid of doubles in my string (which is a concatenation of a keyword and the alphabet). My code was compiling fine until I added the code about concatenating the substrings before and after the character I'm trying to get rid of. … |
|
I'm working on a simple encryption/ decryption program for class. When I try to compile, I get a number of "expected areas" directed towards the following segment of code: [code] public static char encrypt(char c, String k) { String fullcrypt = (k + "abcdefghijklmnopqrstuvwxyz"); for (int i = 0; i … |