oh i dont think it does that im netbeans, i have a mac
Type: Posts; User: heythisgreg
oh i dont think it does that im netbeans, i have a mac
oh, i dont know if this is better i added a screen shot
I fixed the error in the 'If' statement its only lines 22,23,25 that i dont understand im not sure what to put infront of the GtoJ and JtoG...
oh sorry i did it after i posted it:
import java.util.Scanner;
public class GtoJ {
public static void main(String[] args) {
int mm, dd,yy;
int [] mod=...
hi I'm having problems with this code:
the line:
if (yy % 400 == 0|| (yy% 100 !=0 && % yy% 4==0))
-Says illegal start of expression
else {System.out.println ("Input 3 digit Julian:");
-says...
yes i know but im unsure for what i have to do for the if statement
do i insert the numbers for DD and YY, i feel that the way i wrote the if statement must have a error
Hi i have a problem with this code and im not sure what i need to add to fix it:
package gtoj;
public class GtoJ {
public static void main(String[] args){
int YY;
int DD;...
run:
Error: Main method not found in class calendar.Calendar, please define the main method as:
public static void main(String[] args)
Java Result: 1
BUILD SUCCESSFUL (total time: 1 second)
Hello i need help is it possible to make a program where you choose gregorian and the output is julian and vise versa in about 4 lines?
please i need help i dont know how to start it
I have this...
because its for class lol
there is away that you can add methods or something like that and it shows you the results (demo) for that program. I dont no if i explain it, because i dont understand...
For example I have this where they have a program for a Dog
and then there is another program where it shows the information and it plugs the information into the program.
1639
1638
My code...
Hello, so i have a program here and i wanted to know how do i make a demo to test the class
I do not know if i need to edit the program i have so it is able to understand the demo.
Also i...
like this?
<
package q21;
import java.util.Scanner;
public class Q21 {
okay so i got the problem, and it does not show any errors for both of the questions, however, when i press run it says build successful and nothing comes out. I am not sure what to do, there must be...
okay thanks i got it, and for the next one? i dont know where i can to get help on it.
for e1577
For all the errors i get the same problem:
class, interface, enum expected
<package q21;
import java.util.Scanner;
public class Q21 {
Scanner kB = new Scanner(System.in);
public static void main(String[] args) {
}
}
int s = 0;
int t = 1;
Hello, this is what i have for the firs problem:
i get class, interface, or enum expected: all ones that have a * have a problem, i know it has to do with the "int" but i dont know how to fix it.
...
hi please i do not understand how to make a program for the following questions, im a beginner,
For the first one i put it in but it does not work:
I use netbeans to write the program
The...