Search:
Type: Posts; User: Mercifies
Search:
Search took 0.02 seconds.
-
February 5th, 2014, 10:32 PM
You have to instantiate an object for LibUser so it is being used, not just imported
-
November 23rd, 2013, 02:15 PM
I'm not quite sure what you are asking here
-
October 7th, 2013, 09:16 PM
Breaking up your main method into multiple methods allows for better organization and the ability to call code multiple times. I would recommend getting into a habit to make your methods public...
-
October 1st, 2013, 07:32 PM
Arrays start on 0, so to get answer "a" for number 1 you have to call answer[0].
I would also change (in.equals(anwser[1])) to (in.equalsIgnoreCase(anwser[1])) so if you type in B instead of b,...
-
October 1st, 2013, 07:27 PM
_a_ and _b_ are integers that can be accessed from any of your methods throughout the class. Including private (or public for that matter) in front of an int makes it accessible throughout your...
-
August 15th, 2013, 12:09 AM
Why is //mainPanel.add(zz); commented out?
-
June 20th, 2013, 02:08 PM
I personally recommend all new Java coders to use BlueJ. I believe it is better than the eclipse and netbeans because it gives a new coder a virtual environment and requires them to type in all of...
-
June 20th, 2013, 01:55 PM
I believe what you are trying to ask is if you can create an int called x as 1, and then create a new int called nr1 but using x in place of the 1. Well, if this is what you are asking then the...
-
June 19th, 2013, 12:04 AM
Well your code didn't import scanner like the tutorial suggested. I'm not sure why it didn't recognize scanner with my code but try switching java.util.*; with java.Scanner;. Otherwise I'm not quite...
-
June 18th, 2013, 02:52 PM
Can you post some code to see what you have so far?
-
June 18th, 2013, 12:06 AM
I have a simple suggestion to make this program go along much easier. Rather than having 4 randomly generated numbers, why not have 1 4-digit number and compare the input to the int?
import...
-
June 10th, 2013, 02:10 PM
Yes but objects are used for more than just calling upon stored input. They can be used to call other functions and can be used to access data from imports in a class. You will learn more about it...
-
You have to start out with the pointless programs to get an understanding of the language. Its basically like learning a language, the first few years (chapters of a book) are pretty basic phrases...
-
you have to change public void getDegree() to public static void getDegree().
import java.util.*;
public class FinalProject {
static Scanner cm = new Scanner(System.in); //...
-
Try making it public static void getDegree()
-
I didn't put and if statement for the cm converter I just made it default if they don't type in B or b that it goes to the cm converter.
-
import java.util.*;
public class FinalProject {
static Scanner cm = new Scanner(System.in); // accessible to all methods
public static void main (String args[]){
// 2.54cm is 1 inch
...
-
Have you done any previous coding in java and what do you know so far?
-
Basically you have the concept of Object-Oriented programming (the idea of creating objects to store values) you just need to understand why it is a good thing. It allows us to store data for later...
-
Sorry for the error yesterday, I forgot to extend JFrame. Do so by just adding it to the end of public class driver.
public class Driver extends JFrame {
}
-
In your driver class, import JFrame and add the default close operation.
import javax.swing.JFrame;
public class Driver
{
public static void main()
{
StartGame game = new...
|
Click Here to Expand Forum to Full Width
|