Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Mercifies

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    586

    Re: C# ClassLibrary Error

    You have to instantiate an object for LibUser so it is being used, not just imported
  2. Re: Need help with how to put code in method

    I'm not quite sure what you are asking here
  3. Re: problematic Main need help to understand how to use the main

    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...
  4. Thread: array quiz

    by Mercifies
    Replies
    3
    Views
    9,311

    Re: array quiz

    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,...
  5. Replies
    1
    Views
    5,211

    Re: What is _a_? and how it works?

    _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...
  6. Replies
    4
    Views
    3,302

    Re: java image display

    Why is //mainPanel.add(zz); commented out?
  7. Replies
    3
    Views
    410

    Re: First Java Program does not work!

    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...
  8. Replies
    4
    Views
    424

    Re: Creating a variable using a variable?

    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...
  9. Re: Making a int read multiple ints (Scanners)?

    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...
  10. Replies
    2
    Views
    533

    Re: Need help with a homework problem

    Can you post some code to see what you have so far?
  11. Re: Making a int read multiple ints (Scanners)?

    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...
  12. Replies
    9
    Views
    1,511

    Re: Understanding Object Oriented Programming

    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...
  13. Replies
    2
    Views
    250

    Re: C# Beginner's Question

    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...
  14. Replies
    8
    Views
    971

    Re: How to add strings to this Code?

    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); //...
  15. Replies
    8
    Views
    971

    Re: How to add strings to this Code?

    Try making it public static void getDegree()
  16. Replies
    8
    Views
    971

    Re: How to add strings to this Code?

    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.
  17. Replies
    8
    Views
    971

    Re: How to add strings to this Code?

    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
    ...
  18. Replies
    1
    Views
    291

    Re: Text email reader

    Have you done any previous coding in java and what do you know so far?
  19. Replies
    9
    Views
    1,511

    Re: Understanding Object Oriented Programming

    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...
  20. Replies
    3
    Views
    408

    Re: Simple Yet Annoying Problem

    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 {

    }
  21. Replies
    3
    Views
    408

    Re: Simple Yet Annoying Problem

    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...
Results 1 to 21 of 21


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center