A Generative AI-Based Feedback Mechanism for Pedagogical Refinement of Code Writing Problem in Java Programming Learning Assistant System

Java programming is an important skill for IT students to master object-oriented programming (OOP) concepts. Programming exercises help students develop their conceptual understanding and implementation skills. Previously, we implemented the Java Programming Learning Assistant System (JPLAS) for self-study. It includes the Code Writing Problem (CWP) that asks students to implement source code that is evaluated using JUnit test code. However, the current JUnit-based evaluation provides only a pass/fail outcome and does not offer feedback for identifying students’ misconceptions. As a result, teachers must manually analyze incorrect answer codes and refine corresponding materials. In this paper, we propose a generative AI-based feedback mechanism that integrates the Human-in-the-Loop (HITL) process into the CWP. The AI model accepts incorrect answer codes, teacher-prepared materials, supporting inputs, and JUnit execution results as inputs and generates feedback for student error diagnosis, test code refinement, and guidebook refinement as outputs. Expert teachers validate the generated outputs before material refinement. For the main evaluation, we applied the proposal to four OOP CWP topics in a Java course at the State Polytechnic of Malang (POLINEMA), Indonesia. Three AI model settings generated 72 outputs, which were evaluated and validated by five programming teachers. Overall, 54 of 72 outputs were accepted in the HITL validation. The five teacher validators showed high inter-rater agreement (Fleiss’ κ = 0.850). The mechanism also completed the evaluated teacher-side tasks faster than the manual condition. In a classroom comparison involving 33 and 20 students using the original and refined materials, respectively, the refined material group showed higher CWP pass rates (99.17% vs. 96.30%) and mean final grades (77.95 vs. 74.18).

Authors

Institutions

Publication Details

Journal
Algorithms
Published
2026-11-25
DOI
https://doi.org/10.3390/a19121032
Primary Topic
Teaching and Learning Programming
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

A Generative AI-Based Feedback Mechanism for Pedagogical Refinement of Code Writing Problem in Java Programming Learning Assistant System

Komang Candra Brata, Andi Baso Kaswar, Eka Larasati Amalia, Mustika Mentari et al.
2 links
Algorithms
Teaching and Learning Programming
article

A Generative AI-Based Feedback Mechanism for Pedagogical Refinement of Code Writing Problem in Java Programming Learning Assistant System

Komang Candra Brata, Andi Baso Kaswar, Eka Larasati Amalia, Mustika Mentari, Noprianto Noprianto, Yan Watequlis Syaifudin, Triana Fatmawati, Zihao Zhu, Md. Mahbubur Rahman
article en

Abstract

Java programming is an important skill for IT students to master object-oriented programming (OOP) concepts. Programming exercises help students develop their conceptual understanding and implementation skills. Previously, we implemented the Java Programming Learning Assistant System (JPLAS) for self-study. It includes the Code Writing Problem (CWP) that asks students to implement source code that is evaluated using JUnit test code. However, the current JUnit-based evaluation provides only a pass/fail outcome and does not offer feedback for identifying students’ misconceptions. As a result, teachers must manually analyze incorrect answer codes and refine corresponding materials. In this paper, we propose a generative AI-based feedback mechanism that integrates the Human-in-the-Loop (HITL) process into the CWP. The AI model accepts incorrect answer codes, teacher-prepared materials, supporting inputs, and JUnit execution results as inputs and generates feedback for student error diagnosis, test code refinement, and guidebook refinement as outputs. Expert teachers validate the generated outputs before material refinement. For the main evaluation, we applied the proposal to four OOP CWP topics in a Java course at the State Polytechnic of Malang (POLINEMA), Indonesia. Three AI model settings generated 72 outputs, which were evaluated and validated by five programming teachers. Overall, 54 of 72 outputs were accepted in the HITL validation. The five teacher validators showed high inter-rater agreement (Fleiss’ κ = 0.850). The mechanism also completed the evaluated teacher-side tasks faster than the manual condition. In a classroom comparison involving 33 and 20 students using the original and refined materials, respectively, the refined material group showed higher CWP pass rates (99.17% vs. 96.30%) and mean final grades (77.95 vs. 74.18).

AlgorithmsVol. 19(12)
Okayama University (JP), University of Brawijaya (ID), Politeknik Negeri Malang (ID)
Quality education
Teaching and Learning Programming
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon