Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Help plz!!! method generateDayCode(String, int) is undefined for the type dayCodeManager1.

  1. #1
    Junior Member
    Join Date
    Oct 2020
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help plz!!! method generateDayCode(String, int) is undefined for the type dayCodeManager1.

    package de.ostfalia.algodat.ws20;

    public class DayCodeManager1 {




    String persCodeUrl;

    // Konstruktor
    public DayCodeManager1 (String personalCode){
    persCodeUrl = personalCode;
    }

    public void addDayCode(int day) {
    // erzeugt einen neuen dayCode und speichert ihn.
    int newDay = day;
    String newDayCode = generateDayCode(persCodeUrl, newDay);
    }

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Help plz!!! method generateDayCode(String, int) is undefined for the type dayCodeManager1.

    Please post the full contents of the error message that includes the source code line with the error.

    undefined means that the compiler can not find what is described

    Please edit your post and wrap your code with code tags:

    [code]
    **YOUR CODE GOES HERE**
    [/code]

    to get highlighting and preserve formatting.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. The method getPart(String) is undefined for the type HttpServletRequest
    By navjeet in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 8th, 2014, 11:30 AM
  2. The operator / is undefined for the argument type(s)
    By boyjam2 in forum What's Wrong With My Code?
    Replies: 7
    Last Post: September 28th, 2013, 04:12 PM
  3. The operator + is undefined for the argument type(s) String, void
    By Proletariat in forum What's Wrong With My Code?
    Replies: 1
    Last Post: July 7th, 2012, 12:10 AM
  4. Replies: 3
    Last Post: October 28th, 2011, 04:42 PM
  5. he operator / is undefined for the argument type(s) String, int
    By mtbr00x in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: September 8th, 2009, 08:34 PM