User Profile

Collapse

Profile Sidebar

Collapse
yanalvine
yanalvine
Last Activity: Oct 22 '13, 05:34 AM
Joined: Oct 15 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • part to be touch up to get the sad face


    Code:
    // "touch up" the mouth into a smile
    g.setColor( Color.YELLOW );
    g.fillRect( 50, 110, 120, 30 );// touch up here
    g.fillOval( 50, 120, 120, 40 ); // touch up here
    See more | Go to post
    Last edited by Rabbit; Oct 21 '13, 11:41 PM. Reason: Please use [CODE] and [/CODE] tags when posting code or formatted data.

    Leave a comment:


  • yanalvine
    started a topic hello need to touch up the mouth to get a sad face
    in Java

    hello need to touch up the mouth to get a sad face

    Code:
    import java.awt.*;
    import java.applet.Applet;
    import java.awt.event.*;
    
    public class Smiley extends Applet implements ActionListener
    {
    /**
    *
    */
    private static final long serialVersionUID = 1L;
    private boolean SMILE = true;
    private final Font f = new Font("Helvetica", Font.PLAIN, 9);
    
    public void init() { // Define the GUI
    
    // The applet has a "Smile"
    ...
    See more | Go to post
    Last edited by Rabbit; Oct 21 '13, 11:41 PM. Reason: Please use [CODE] and [/CODE] tags when posting code or formatted data.

  • hello i cant find where to correct it, can someone help
    See more | Go to post

    Leave a comment:


  • in my code below i have a small error in the line(System.out.println("Your Zodiac si)

    Code:
    import java.util.*;
    
    public class zodiac2 {
    public static void main(String[] args) {
    String sign="";
    
    
    int month, day,year;
    
    Scanner c = new Scanner (System.in);
    System.out.println("Enter day(1-31): ");
    day = c.nextInt();
    System.out.println("Enter month(1-12): ");
    month = c.nextInt();
    System.out.println("Enter year: ");
    ...
    See more | Go to post
    Last edited by Rabbit; Oct 21 '13, 06:40 AM. Reason: Please use [CODE] and [/CODE] tags when posting code or formatted data.

  • yanalvine
    replied to hello need help to correct my code
    in Java
    Description Resource Path Location Type
    IDNumber cannot be resolved to a variable person.java /helloe/src line 61 Java Problem
    Return type for the method is missing hi.java /helloe/src line 14 Java Problem
    smileButton cannot be resolved to a type hi.java /helloe/src line 14 Java Problem
    Syntax error on token ")", { expected after this token hi.java /helloe/src line 14 Java Problem
    Syntax error on token "smileButto n",...
    See more | Go to post

    Leave a comment:


  • yanalvine
    replied to hello need help to correct my code
    in Java
    im getting errors i dont know why?
    See more | Go to post

    Leave a comment:


  • yanalvine
    replied to hello need help to correct my code
    in Java
    the question was:
    designe a java class of person with the following
    attributes: person should have:
    1.Names
    a. First name
    b.Last name
    c. Middle initial
    d.ID number

    2. Date of birth
    a.Year of birth
    b.Month of birth
    c.Day of the month
    d. Day of the week
    See more | Go to post

    Leave a comment:


  • yanalvine
    started a topic hello need help to correct my code
    in Java

    hello need help to correct my code

    Code:
    import java.util.Scanner; // program uses class Scanner
    import java.awt.Color;
    import java.awt.Graphics;
     import javax.swing.JPanel;
     
     public class person {
    
    
    private String firstName;
    private String lastName;
    private String middleInitial;
    private String idNumber;
    
    
    public void personAttributes( String first, String last,String middle, String id )
    {
    ...
    See more | Go to post
    Last edited by Rabbit; Oct 17 '13, 05:29 AM. Reason: Please use [CODE] and [/CODE] tags when posting code or formatted data.
No activity results to display
Show More
Working...