fork download
  1. package com.example.todoscheduletest;
  2.  
  3. import java.util.ArrayList;
  4. import java.util.List;
  5.  
  6. public class User {
  7.  
  8. private long ID;
  9. private String Title;
  10. private String Date;
  11. private String Time;
  12. private String Todo1;
  13. private String Todo2;
  14. private String Todo3;
  15. private String Todo4;
  16. private String Todo5;
  17.  
  18. public TextView todo1Name;
  19.  
  20. public User(long Id, String tName, String dName, String time, String todo1Name, String todo2Name, String todo3Name, String todo4Name, String todo5Name){
  21. ID = Id;
  22. Title = tName;
  23. Date = dName;
  24. Time = time;
  25. Todo1 = todo1Name;
  26. Todo2 = todo2Name;
  27. Todo3 = todo3Name;
  28. Todo4 = todo4Name;
  29. Todo5 = todo5Name;
  30. }
  31.  
  32. public long getId(){
  33. return ID;
  34. }
  35.  
  36. public void setId(long Id) {
  37. ID = Id;
  38. }
  39.  
  40.  
  41. public String getTitleName() {
  42. return Title;
  43. }
  44.  
  45. public void setTitleName(String titleName) {
  46. Title = titleName;
  47. }
  48.  
  49.  
  50. public String getDateName() {
  51. return Date;
  52. }
  53.  
  54. public void setDateName(String dateName) {
  55. Date = dateName;
  56. }
  57.  
  58. //TODO todoテスト変更3
  59.  
  60. public String getTime() {
  61. return Time;
  62. }
  63.  
  64. public void setTime(String time) {
  65. Time = time;
  66. }
  67. }
  68.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:6: error: class User is public, should be declared in a file named User.java
public class User {
       ^
Main.java:18: error: cannot find symbol
    public TextView todo1Name;
           ^
  symbol:   class TextView
  location: class User
2 errors
stdout
Standard output is empty